Skip to content

Instantly share code, notes, and snippets.

@brixtonasias
Created December 2, 2009 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brixtonasias/247432 to your computer and use it in GitHub Desktop.
Save brixtonasias/247432 to your computer and use it in GitHub Desktop.
{% load disqus_tags flatblock_tags cache navbar generic_content blog compress analytics elsewhere feeds i18n archive %}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{% block title %}{{ BLOG_SETTINGS.site_name }}{% endblock %}</title>
{% block meta %}
<meta name="keywords" content="{{ BLOG_SETTINGS.meta_keywords }}">
<meta name="description" content="{{ BLOG_SETTINGS.meta_description }}">
<meta name="author" content="{{ BLOG_SETTINGS.author_name }}" />
{% endblock %}
<meta name="copyright" content="{{ BLOG_SETTINGS.copyright }}" />
<link rel="shortcut icon" href="{{ STATIC_URL }}imgs/favicon.ico" type="image/x-icon"/>
{% block rss %}
<link rel="alternate" type="application/rss+xml" title="{{ BLOG_SETTINGS.site_name }} main rss feed" href="{{ BLOG_SETTINGS.rss_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ BLOG_SETTINGS.site_name }} all entries feed" href="/feeds/all/">
<link rel="alternate" type="application/rss+xml" title="{{ BLOG_SETTINGS.site_name }} all posts feed" href="/feeds/latest/">
{% endblock %}
{% compress css %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/sk_layout.css" type="text/css" media="all" charset="utf-8">
{% endcompress %}
<!--[if IE 6]>
<script src="{{ STATIC_URL }}js/DD_belatedPNG_0.0.7a-min.js"></script>
<script>
DD_belatedPNG.fix('#bleeder, .logo');
</script>
<![endif]-->
{% disqus_dev %}
{% block extra_head %}{% endblock %}
</head>
<body id="{% block body_id %}{% endblock %}" class="{% block body_class %}blog{% endblock %}">
<div class="page_margins">
{% block body %}
<div id="border-top">
<div id="edge-tl"></div>
<div id="edge-tr"></div>
</div>
<div class="page">
<div id="header">
<div id="topnav">
<!-- start: skip link navigation -->
<a class="skip" title="skip link" href="#navigation">Skip to the navigation</a><span class="hideme">.</span>
<a class="skip" title="skip link" href="#content">Skip to the content</a><span class="hideme">.</span>
<!-- end: skip link navigation -->
<div id="social_content">
<a href="http://twitter.com/skohler"><img src="{{ STATIC_URL }}imgs/twitter_32.png" title="Me at twitter" /></a>
<a href="http://facebook.com/skohler"><img src="{{ STATIC_URL }}imgs/facebook_32.png" title="Me at facebook" /></a>
<img src="{{ STATIC_URL }}imgs/flickr_32.png" title="Me at flickr" />
<img src="{{ STATIC_URL }}imgs/digg_32.png" title="Me at digg" />
<img src="{{ STATIC_URL }}imgs/rss_32.png" title="My blog as RSS feed" />
<a href="mailto:email_at_stfnkhlr.de"><img src="{{ STATIC_URL }}imgs/email_32.png" title="Send me an email" /></a>
</div>
<div id="search_content"><form action="/search/" method="GET"><input type="text" name="q" value="{{ search_term }}"><input type="submit" class="button" value="Search"></form></div>
</div>
</div>
</div>
<div id="nav">
<!-- skiplink anchor: navigation -->
<a id="navigation" name="navigation"></a>
<div class="hlist">
<!-- main navigation: horizontal list -->
<ul>
<li><a href="#"><img src="{{ STATIC_URL }}imgs/button_blog.png" /></a></li>
<li><a href="#"><img src="{{ STATIC_URL }}imgs/button_projects.png" /></a></li>
<li><a href="#"><img src="{{ STATIC_URL }}imgs/button_about.png" /></a></li>
</ul>
</div>
</div>
<div id="main">
<div id="col1">
<div id="col1_content" class="clearfix">
<!-- add your content here -->
<h4>{% trans "About" %}</h4>
<p>{{ BLOG_SETTINGS.about }}</p>
<ul>
{% cache 3600 "base.profiles" %}
{% get_elsewhere_profiles as profiles %}
{% for item in profiles %}
<li><a href="{{ item.url }}" rel="me" title="{{ item.name }}">{{ item.name }}</a></li>
{% endfor %}
</ul>
{% endcache %}
<h4>{% trans "Categories" %}</h4>
<ul>
{% cache 3600 "base.category_list" %}
{% get_blog_categories as category_list %}
{% for category in category_list %}
<li><a href="{% url basic.blog.views.category_detail category.slug %}" title="{{ category.title }}">{{ category.title }}</a></li>
{% endfor %}
</ul>
{% endcache %}
{% cache 3600 "base.post_list" %}
{% get_latest_posts 10 as post_list %}
<h4>{% trans "Recent Posts" %}</h4>
<ul class="recent-posts">
{% for post in post_list %}
<li><a href="{{ post.get_absolute_url }}" title="{{ post.title }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endcache %}
{% cache 7200 "base.archive" %}
{% get_post_archive as dates %}
<h4>{% trans "Archive" %}</h4>
<ul class="archive">
{% for date in dates %}
<li><a href="{% url blog_archive_month date|date:"Y", date|date:"b" %}" title="{{ date|date:"F Y" }}">{{ date|date:"F Y" }}</a></li>
{% endfor %}
</ul>
{% endcache %}
{% cache 3600 "base.blogroll" %}
{% get_blogroll 10 as blogroll %}
<h4>{% trans "BlogRoll" %}</h4>
<ul class="recent-posts">
{% for item in blogroll %}
<li><a href="{{ item.get_absolute_url }}" title="{{ item.name }}">{{ item.name }}</a></li>
{% endfor %}
</ul>
{% endcache %}
{% cache 3600 "bas.popular-posts" %}
<h4>{% trans "Popular Posts" %}</h4>
<ul class="recent-posts">
{% get_popular_posts 10 as popular_post_list %}
{% for item in popular_post_list %}
<li><a href="{{ item.get_absolute_url }}" title="{{ item.title }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
{% endcache %}
</div>
<div id="ie_clearing"> &#160; </div>
</div>
<div id="col3">
<div id="col3_content" class="clearfix">
<!-- add your content here -->
{% block content %} {% endblock %}
</div>
<div id="ie_clearing"> &#160; </div>
</div>
</div>
<div id="border-bottom">
<div id="edge-bl"></div>
<div id="edge-br"></div>
</div>
{% endblock %}
</div>
<!-- begin: #footer -->
<div id="footer">
{% cache 3600 "base.footer" %}
{% flatblock "footer" 3600 "flatblocks/bare.html" %}
{% endcache %}
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment