danielmochdotcom

Nikola site for www.danielmoch.com
git clone git://git.danielmoch.com/danielmochdotcom.git
Log | Files | Refs

commit 8f77f049208a0d71f02e22e738f491446e456426
parent 7828aad28144b9baae0ab2f48e3a980c5a50ba5b
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Tue, 16 Oct 2018 17:49:58 -0400

Add categories and archive

Diffstat:
Mthemes/djmoch/assets/site.css | 19+++++++++++++++++++
Mthemes/djmoch/templates/post.tmpl | 2++
Mthemes/djmoch/templates/post_base.tmpl | 6+++++-
3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/themes/djmoch/assets/site.css b/themes/djmoch/assets/site.css @@ -82,3 +82,22 @@ body { margin-bottom: 1em; } +/* Tags */ +.postpromonav { + border-bottom: 1px solid #4F5151; + border-top: 1px solid #4F5151; + margin-top: 1em; + padding: .5em 0; +} +.postpromonav .tags { + text-align: center; +} +.metadata p:before, +.postpromonav .tags li:before, +.postlist .listdate:after, +.translationslist p:before { + content: " — "; +} +.postlist li { + margin-bottom: .33em; +} diff --git a/themes/djmoch/templates/post.tmpl b/themes/djmoch/templates/post.tmpl @@ -7,6 +7,8 @@ {% block content %} <h1 class="page-title">{{post.title()}}</h1> <h2 class="page-subtitle"> +Filed under: {{post.meta('category')}} +<br> By: {{post.author()}} <br> {{post.formatted_date(date_format) | e}} diff --git a/themes/djmoch/templates/post_base.tmpl b/themes/djmoch/templates/post_base.tmpl @@ -1,3 +1,7 @@ {% extends "base.tmpl" %} -{% block nav %}<li><a href="/rss.xml">RSS</a></li>{% endblock %} +{% block nav %} +<li><a href="/categories">Categories</a></li> +<li><a href="/archive.html">Archive</a></li> +<li><a href="/rss.xml">RSS</a></li> +{% endblock %}