diff options
Diffstat (limited to 'design/templates/archives')
-rw-r--r-- | design/templates/archives/src_books.html | 22 | ||||
-rw-r--r-- | design/templates/archives/src_home.html | 0 |
2 files changed, 22 insertions, 0 deletions
diff --git a/design/templates/archives/src_books.html b/design/templates/archives/src_books.html new file mode 100644 index 0000000..bfaffc0 --- /dev/null +++ b/design/templates/archives/src_books.html @@ -0,0 +1,22 @@ +{% extends 'src_base.html' %} +{% load typogrify_tags %} +{% load comments %} + +{% block primary %} + <main role="main"> + {% for object in object_list %} + <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"> + <header id="header" class="post--header {% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %}post--header--double{%endif%}{%endwith%}"> + <img src="{{object.image.url}}" alt="{{object.title}} cover" /> + <h1 class="p-name entry-title post--title" itemprop="headline">{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|smartypants|safe}}{%else%}{{object.title|smartypants|widont|safe}}{%endif%}</h1> + {% if object.slug != 'about' %}<time class="dt-published published dt-updated post--date" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time>{%endif%} + {% if object.topics.all %}<span class="src-topics">Topics: {% for topic in object.topics.all%} <a href="/src/topic/{{topic.slug}}">{{topic.name}}</a>{%if forloop.last%}{%else%}, {%endif%}{%endfor%}</span>{%endif%} + <p class="p-author author hide" itemprop="author"><span class="byline-author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Scott Gilbertson</span></span></p> + </header> + <div id="article" class="e-content entry-content post--body post--body--{% with object.template_name as t %}{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%endif%}{%endwith%}" itemprop="articleBody"> + {{object.body_html|safe|smartypants|widont}} + </div> + </article> + {%endfor%} + </main> +{% endblock %} diff --git a/design/templates/archives/src_home.html b/design/templates/archives/src_home.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/design/templates/archives/src_home.html |