1
0
Fork 0

Add publication time to the theme

blog
LEdoian 6 months ago
parent 53cc5442dc
commit 5348273b16

@ -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'

@ -84,3 +84,11 @@ p {
p.caption {
text-align: center;
}
.details {
text-align: center;
color: orange;
margin: 0.9em;
/*width: 100%;
*/
}

@ -1,7 +1,8 @@
{% extends 'base.html' %}
{% set page_title = article.title %}
{% block content %}
<div class="details"><time datetime="{{ article.date.isoformat() }}">{{article.locale_date}}</time></div>
<h1>{{ article.title }}</h1>
{# TODO: more details here #}
{# TODO: more details here: update, language, translations, maybe different style for drafts? summary? tags, categories #}
{{ article.content }}
{% endblock content %}

Loading…
Cancel
Save