diff options
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/archives/src_home.html | 19 | ||||
-rw-r--r-- | design/templates/details/src_entry.html | 9 | ||||
-rw-r--r-- | design/templates/src_base.html | 4 |
3 files changed, 30 insertions, 2 deletions
diff --git a/design/templates/archives/src_home.html b/design/templates/archives/src_home.html index e69de29..2eee4eb 100644 --- a/design/templates/archives/src_home.html +++ b/design/templates/archives/src_home.html @@ -0,0 +1,19 @@ +{% extends 'src_base.html' %} +{% load typogrify_tags %} +{% load comments %} + +{% block pagetitle %}luxagraf:src - archive{% endblock %} + +{% block metadescription %}luxagraf:src - thoughts on code, the web, servers, tools and things that might be useful to a couple of people somewhere in the future.{% endblock %} +{% block primary %}<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> + <li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> → </li> + <li><code>src</code></li> + </ul> + <main role="main" id="src-archive" class="src-archive"> + <h1 class="hide">Luxagraf:src</h1>{% for object in object_list %}{% if object.slug != 'about' %} + <article class="h-entry hentry {% cycle 'odd' 'even' %} {% cycle 'first' 'second' 'third' %}" itemscope itemType="http://schema.org/Article"> + <h2>{{object.title|safe}}</h2> + </article>{%endif%} + {%endfor%} + </main> +{%endblock%} diff --git a/design/templates/details/src_entry.html b/design/templates/details/src_entry.html index 3fa4c93..ff4ddfe 100644 --- a/design/templates/details/src_entry.html +++ b/design/templates/details/src_entry.html @@ -2,6 +2,12 @@ {% load typogrify_tags %} {% load comments %} +{% block pagetitle %}{{object.title|title|smartypants|safe}} luxagraf:src{% endblock %} + +{% block metadescription %}{% autoescape on %}{{object.meta_description|striptags|safe}}{% endautoescape %}{% endblock %} +{%block extrahead%} +<link rel="stylesheet" href="/media/src/prism.css" type="text/css" media="screen"/> +{%endblock%} {% block primary %} <main role="main"> <article class="h-entry hentry post--article{% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %} post--article--double{%endif%}{%endwith%}" itemscope itemType="http://schema.org/Article"> @@ -66,4 +72,7 @@ window.onload = function() { {%endif%}{%endwith%} } </script> +{% if object.has_code %} +<script src="/media/src/prism.js"></script> +{%endif %} {% endblock %} diff --git a/design/templates/src_base.html b/design/templates/src_base.html index 29991a9..6c59463 100644 --- a/design/templates/src_base.html +++ b/design/templates/src_base.html @@ -30,11 +30,11 @@ <div class="header-wrapper"> <header role="banner"> <h1><a id="logo" href="/" title="home">Luxagraf</a></h1> - <h2>SRC: Code Slowly</h2> + <h2><code>SRC: Code Slowly</code></h2> </header> <nav role="navigation" class="bl"> <ul> - <li><a href="/src/" title="SRC Home">SRC Archive</a></li> + <li><a href="/src/" title="Archive/Home">Archive</a></li> <li><a href="/src/books" title="Ebooks">Books</a></li> <li class="last"><a href="/src/about" title="">About</a></li> </ul> |