snipt/blogs/templates/blogs/themes/pro-adams/base.html

141 lines
5.3 KiB
HTML
Raw Normal View History

2016-11-01 09:59:35 -07:00
{% load snipt_tags static %}
<!DOCTYPE html>
<html lang="en" class="{% block html-class %}{% endblock %}">
<head>
2012-09-18 09:44:00 -07:00
<title>
{% block page-title %}
{% if blog_user.profile.blog_title %}
{{ blog_user.profile.blog_title }}
{% else %}
{{ blog_user.username }}
{% endif %}
{% endblock %}
</title>
<meta charset="utf-8" />
{% if 'page' in request.GET %}
<meta name="robots" content="noindex, follow" />
{% endif %}
{% if blog_user.profile.gittip_username %}
<script type="text/javascript" charset="utf-8">
window.gittip_username = '{{ blog_user.profile.gittip_username }}';
</script>
{% endif %}
2012-08-28 08:35:04 -07:00
2013-02-18 06:37:22 -08:00
{% if debug %}
2014-10-20 17:35:59 -07:00
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/blog-themes/pro-adams/style.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/highlightjs-themes/tomorrow.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/themes.css" />
2013-02-18 06:37:22 -08:00
{% else %}
2014-10-20 17:35:59 -07:00
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pro.css?26" />
2013-02-18 06:37:22 -08:00
{% endif %}
2014-10-20 17:35:59 -07:00
<link rel="shortcut icon" href="{{ STATIC_URL }}img/blog-favicon.ico" >
2012-09-18 09:55:22 -07:00
{% if custom_css %}
<style type="text/css">
{{ custom_css.code }}
</style>
{% endif %}
{% if has_snipts and not detail %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ request.path }}?rss{% if not public %}&api_key={{ request.user.api_key.key }}{% endif %}" />
{% endif %}
<!--[if IE]>
<style type="text/css">
.group {
display: block;
zoom: 1;
}
</style>
<![endif]-->
<!--[if lt IE 9]>
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
2013-02-19 20:25:32 -08:00
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
</head>
<body class="{% block body-class %}{% endblock %}">
<div class="frame">
2012-08-20 18:48:37 -07:00
<div class="left-y ruler"></div>
<div class="right-y ruler"></div>
{% block header %}
<header class="main">
2012-08-20 18:48:37 -07:00
<a href="/" class="logo">
<span class="avatar" style="background-image: url('https://secure.gravatar.com/avatar/{{ blog_user.email|md5 }}?s=80');"></span>
</a>
<div class="bio">
<a class="name" href="/">
{% if blog_user.profile.blog_title %}
{{ blog_user.profile.blog_title }}
{% else %}
{{ blog_user.username }}
{% endif %}
</a>
{% if header %}
{{ header.stylized|safe }}
2012-09-18 09:37:11 -07:00
{% endif %}
2012-08-20 18:48:37 -07:00
</div>
</header>
{% endblock %}
2012-08-21 21:24:27 -07:00
<section class="main group">
<section class="content group">
2012-08-27 20:57:40 -07:00
{% block content %}{% endblock %}
2012-08-21 21:24:27 -07:00
</section>
<aside class="main">
{% if sidebar %}
{{ sidebar.stylized|safe }}
2012-09-18 09:37:11 -07:00
{% endif %}
{% if blog_user.profile.google_ad_client %}
<div class="google-ads">
<script type="text/javascript">
google_ad_client = '{{ blog_user.profile.google_ad_client }}';
google_ad_slot = '{{ blog_user.profile.google_ad_slot }}';
google_ad_width = {{ blog_user.profile.google_ad_width }};
google_ad_height = {{ blog_user.profile.google_ad_height }};
</script>
<script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
{% endif %}
2013-03-04 15:34:13 -08:00
{% if snipts %}
<section class="module snipts">
<h1>Recent blog posts</h1>
<ul>
{% for snipt in snipts|slice:":3" %}
<li><a href="{{ snipt.get_full_absolute_url }}">{{ snipt.title }}</a></li>
{% endfor %}
</ul>
</section>
{% endif %}
2013-01-15 22:21:09 -08:00
{% if normal_snipts %}
<section class="module snipts">
<h1>Recent snipts</h1>
<ul>
{% for snipt in normal_snipts %}
<li><a href="{{ snipt.get_full_absolute_url }}">{{ snipt.title }}</a></li>
{% endfor %}
</ul>
</section>
{% endif %}
2012-08-21 21:24:27 -07:00
</aside>
</section>
</div>
2014-10-20 17:35:59 -07:00
<script type="text/javascript" src="{{ STATIC_URL }}js/pro-all.min.js?2"></script>
2013-02-07 07:44:49 -08:00
2013-02-07 07:58:26 -08:00
{% include 'analytics.html' %}
</body>
</html>