2016-11-01 09:59:35 -07:00
{% load snipt_tags static %}
2012-07-30 09:51:02 -07:00
<!DOCTYPE html>
< html lang = "en" class = "{% block html-class %}{% endblock %}" >
< head >
2012-09-18 09:44:00 -07:00
< title >
{% block page-title %}
2013-01-15 21:09:54 -08:00
{% if blog_user.profile.blog_title %}
{{ blog_user.profile.blog_title }}
{% else %}
{{ blog_user.username }}
{% endif %}
{% endblock %}
< / title >
2012-07-30 09:51:02 -07:00
< meta charset = "utf-8" / >
2013-01-15 21:09:54 -08:00
2012-07-30 09:51:02 -07:00
{% if 'page' in request.GET %}
< meta name = "robots" content = "noindex, follow" / >
{% endif %}
2013-01-20 09:21:07 -08:00
{% if blog_user.profile.gittip_username %}
< script type = "text/javascript" charset = "utf-8" >
2013-01-15 22:17:21 -08:00
window.gittip_username = '{{ blog_user.profile.gittip_username }}';
2013-01-20 09:21:07 -08:00
< / 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 %}
2012-07-30 09:51:02 -07:00
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
2013-01-19 21:08:45 -08:00
{% if custom_css %}
< style type = "text/css" >
{{ custom_css.code }}
< / style >
{% endif %}
2012-07-30 09:51:02 -07:00
{% 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 >
2012-07-30 09:51:02 -07:00
< / 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 >
2012-07-30 09:51:02 -07:00
{% 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 = "/" >
2013-01-15 21:09:54 -08:00
{% if blog_user.profile.blog_title %}
{{ blog_user.profile.blog_title }}
2012-07-30 09:51:02 -07:00
{% else %}
{{ blog_user.username }}
{% endif %}
< / a >
2013-01-15 22:17:21 -08:00
{% if header %}
{{ header.stylized|safe }}
2012-09-18 09:37:11 -07:00
{% endif %}
2012-08-20 18:48:37 -07:00
< / div >
2012-07-30 09:51:02 -07:00
< / 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" >
2013-01-15 22:17:21 -08:00
{% if sidebar %}
{{ sidebar.stylized|safe }}
2012-09-18 09:37:11 -07:00
{% endif %}
2013-02-08 21:06:22 -08:00
{% 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 >
2013-02-08 22:10:14 -08:00
< script type = "text/javascript" src = "//pagead2.googlesyndication.com/pagead/show_ads.js" > < / script >
2013-02-08 21:06:22 -08:00
< / 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 >
2012-07-30 09:51:02 -07:00
< / 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' %}
2012-07-30 09:51:02 -07:00
< / body >
< / html >