Source

dcd-templates / base.html

Full commit
{% extends "_base.html" %}
<!DOCTYPE html>{% load mango %}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>{% block head %}{{ block.super }}{% block stylesheets %}{% endblock %}
    <link rel="shortcut icon" type="image/x-icon" href="http://static.davidchambersdesign.com/favicon.ico" />
    <script src="http://use.typekit.com/jhk0ogh.js"></script>
    <script>try{Typekit.load();}catch(e){}</script>{% endblock %}
</head>
<body>{% block body %}
    <div id="skip">
        <a href="#main">Skip to main content</a>
    </div><!--/skip-->
    <div id="wrap">
        <div id="header">
            <header>{% url mango.views.index as path %}{% if request.path == path %}
                <h1 id="title">{{ SITE_TITLE }}</h1>{% else %}
                <a id="title" href="{{ path }}">{{ SITE_TITLE }}</a>{% endif %}
                <hr />
                <p>It's where I share interesting info with other web geeks</p>
                <form action="{% url mango.views.search %}">
                    <div>
                        <label for="query">Search davidchambersdesign.com</label>
                        <input type="search" id="query" name="query"{% if terms %} value="{{ terms|to_query_string }}"{% endif %} />
                        <input type="submit" value="Search" />
                    </div>
                </form>
                <nav id="nav">
                    <ul>
                        <li><a href="/about/"><span><strong>About.</strong> Who I am and what I do.</span></a></li>
                        <li><a href="{% url mango.views.contact %}"><span><strong>Contact.</strong> Just in case you want to get in touch.</span></a></li>
                        <li><a href="{% url mango.views.archives %}"><span><strong>Archives.</strong> Old posts, recent posts, they're all here.</span></a></li>
                        <li><a href="{% url mango.views.tags %}"><span><strong>Tags.</strong> Helpful if you're after posts on a particular topic.</span></a></li>
                        <li><a href="https://bitbucket.org/davidchambers"><span><strong>Bitbucket.</strong> Home to most of my open-source projects.</span></a></li>
                        <li><a href="/twitter/"><span><strong>Twitter.</strong> It's where I chirrup… or chirp… or something.</span></a></li>{% if request|internal %}
                        <li><a href="{% url mango.handlers.flush_cache %}"><span><strong>Flush cache.</strong></span></a></li>{% endif %}
                    </ul>
                </nav>
            </header>
        </div><!--/header-->
        <div id="main">
{% block content %}
{% endblock %}
        </div><!--/main-->
    </div><!--/wrap-->
    <footer>
        <p>Powered by <a href="http://mango.io/wtf?" data-version="{{ VERSION }}">Mango</a>. Hosted on <a href="http://www.linode.com/?r=ce523c9eeda64e4bceaf7011dc9e8558b909711d">Linode</a>. Original content <a href="{% url copying %}">WTFPL-licensed</a>.</p>
    </footer>{% block scripts %}{% for script in scripts %}
    {{ script }}{% endfor %}{% endblock %}
    <script>
        window.SyntaxHighlighter &&
        SyntaxHighlighter.brushes &&
        SyntaxHighlighter.brushes.AppleScript &&
        SyntaxHighlighter.all()
    </script>{% block analytics %}{{ block.super }}{% endblock %}
    <!-- Generated by Mango -->{% endblock %}
</body>
</html>