From 5348273b167e3b6a826b8fb20cc7cedf3255a00f Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Mon, 20 May 2024 14:06:37 +0200 Subject: [PATCH] Add publication time to the theme --- pelicanconf.py | 2 ++ test-theme/static/css/theme.css | 8 ++++++++ test-theme/templates/article.html | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pelicanconf.py b/pelicanconf.py index b973ac9..bbdade6 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -28,6 +28,8 @@ JINJA_ENVIRONMENT = { PLUGINS = ['plugins.pelicanversion'] TIMEZONE = 'Europe/Prague' +# How the hell does this not support %F %T? +DEFAULT_DATE_FORMAT = '%Y-%m-%d %H:%M' DEFAULT_LANG = 'en' diff --git a/test-theme/static/css/theme.css b/test-theme/static/css/theme.css index 4699221..b495666 100644 --- a/test-theme/static/css/theme.css +++ b/test-theme/static/css/theme.css @@ -84,3 +84,11 @@ p { p.caption { text-align: center; } + +.details { + text-align: center; + color: orange; + margin: 0.9em; + /*width: 100%; + */ +} diff --git a/test-theme/templates/article.html b/test-theme/templates/article.html index 848a3ce..1c1284c 100644 --- a/test-theme/templates/article.html +++ b/test-theme/templates/article.html @@ -1,7 +1,8 @@ {% extends 'base.html' %} {% set page_title = article.title %} {% block content %} +

{{ article.title }}

-{# TODO: more details here #} +{# TODO: more details here: update, language, translations, maybe different style for drafts? summary? tags, categories #} {{ article.content }} {% endblock content %}