layout/skeleton/_base.html @ 8534b74192a8

Add print links.
author Steve Losh <steve@stevelosh.com>
date Sun, 04 Jul 2010 15:09:07 -0400
parents b39558243b24
children def464696a83
{% extends "skeleton/_root.html" %}

{% block all %}<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        
        <title>{% block title %}{% block extra_title %}{% endblock %}{{ page.title|safe }} / {{ site.name }}{% endblock %}</title>
        
        {% block feeds %}
            <link href="http://feeds2.feedburner.com/stevelosh"
                  rel="alternate" title="{{ site.name }}"
                  type="application/atom+xml" />
        {% endblock %}
        
        {% block css %}
            <link rel="stylesheet" href="{{ site.url }}/media/css/aal.css" type="text/css" media="screen" charset="utf-8" />
            <link rel="stylesheet" href="{{ site.url }}/media/css/base.css" type="text/css" media="screen" charset="utf-8" />
            <link rel="stylesheet" href="{{ site.url }}/media/css/colorbox.css" type="text/css" media="screen" charset="utf-8" />
            <link rel="stylesheet" href="{{ site.url }}/media/css/print.css" type="text/css" media="print" charset="utf-8" />
            {% block extra_css %}{% endblock %}
        {% endblock %}
        
        {% block js %}
            <script src="/media/js/jquery.js" type="text/javascript"></script>
            <script src="/media/js/jquery.timeago.js" type="text/javascript"></script>
            <script src="/media/js/jquery.colorbox.js" type="text/javascript"></script>
            <script src="/media/js/sjl.js" type="text/javascript"></script>
            <script src="/media/js/print.js" type="text/javascript"></script>
            <script src="http://mint.stevelosh.com/?js" type="text/javascript"></script>
            
            {% block extra_js %}{% endblock %}
            {% endblock %}

        <link rel="openid.server" href="http://www.myopenid.com/server" />
        <link rel="openid.delegate" href="http://stevelosh.myopenid.com/" />
    </head>
    
    <body>
        <div id="main-wrap">
            <div id="header">
                <h1>
                    <a href="/">steve losh</a> <span class="page-title">/ {{ page.title|safe|typogrify }}{% block extra_header %}{% endblock %}</span>
                </h1>
                {% block after_header %}{% endblock %}
            </div>
            
            <div id="nav">
                <ul>
                    <li><a href="/blog/">Blog</a></li>
                    <li><a href="http://bitbucket.org/sjl/">Code</a></li>
                    <li><a href="/projects">Projects</a></li>
                    <li><a href="/about/">About</a></li>
                    <li><a href="http://feeds2.feedburner.com/stevelosh">Feed</a></li>
                </ul>
            </div>
            
            <div id="content">
                {% with page.node.ancestors|last as parent_node %}
                    {% with parent_node.url as parent_url %}
                        {% block content %}{% endblock %}   
                    {% endwith %}
                {% endwith %}
            </div>
        </div>
    </body>
</html>
{% endblock %}