From d5f5094ae417f65bb3c090a8d3762e3a2f693441 Mon Sep 17 00:00:00 2001 From: Anton Sarukhanov <code@ant.sr> Date: Wed, 28 Jun 2017 23:50:26 -0400 Subject: [PATCH] Add description to headers, tweak wording. --- theme/static/css/style.css | 9 +++++++-- theme/templates/article.html | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/theme/static/css/style.css b/theme/static/css/style.css index 7d8e68b..9c6d2c0 100644 --- a/theme/static/css/style.css +++ b/theme/static/css/style.css @@ -375,8 +375,13 @@ main img { main .hero { display: block; } -main header h1 + .time, -main header h2 + .time { +main header .description { + margin-top: -.8em; + font-size: 1.25em; + color: #aaa; +} +main header h1 ~ .time, +main header h2 ~ .time { display: block; margin-top: -1em; } diff --git a/theme/templates/article.html b/theme/templates/article.html index 6ba4051..c5d6d7a 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -31,12 +31,17 @@ <h1> {{ article.title }} </h1> + {% if article.description %} + <p class="description"> + {{ article.description }} + </p> + {% endif %} <p class="time"> <time datetime="{{ article.date.isoformat() }}"> - Posted on {{ article.locale_date }}</time> + Posted {{ article.locale_date }}.</time> {% if article.modified %} <time datetime="{{ article.modified.isoformat() }}"> - Modified on {{ article.locale_modified }}</time> + Updated {{ article.locale_modified }}.</time> {% endif %} </p> </header> -- GitLab