diff options
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/templates/page.html b/templates/page.html index 4c9a18c..ce07c6d 100644 --- a/templates/page.html +++ b/templates/page.html @@ -31,27 +31,22 @@ <p class="publish-date"> {% if page.date %} {{ trans(key="published", lang=lang) }} - {{ page.date | date(format="%Y-%m-%d %H:%M UTC") }} + {{ page.date | date(format="%Y-%m-%d") }} {{ trans(key="published_on", lang=lang) }} {% else %} {{ trans(key="not_published", lang=lang) }} {% endif %} - {% if page.permalink is containing("weblog") %} - <a href="{% if lang != "en" %}/{{ lang }}{% endif %}/weblog"> - {{ trans(key="weblog_title", lang=lang) }} - </a> - {% elif page.permalink is containing("food") %} - <a href="{% if lang != "en" %}/{{ lang }}{% endif %}/food"> - {{ trans(key="recipes_title", lang=lang) }} - </a></p> - {% endif %} + {%- if page.permalink is containing("weblog") -%} + <a href="{% if lang != "en" %}/{{ lang }}{% endif %}/weblog">{{ trans(key="weblog_title", lang=lang) }}</a> + {%- elif page.permalink is containing("food") -%} + <a href="{% if lang != "en" %}/{{ lang }}{% endif %}/food">{{ trans(key="recipes_title", lang=lang) }}</a> + {%- endif -%} + {%- if page.updated -%} + . + {{ trans(key="edited", lang=lang) }} + {{ page.updated | date(format="%Y-%m-%d") }} + {% endif -%} </p> -{% if page.updated %} -<p class="publish-date"> - {{ trans(key="edited", lang=lang) }} - {{ page.updated | date(format="%Y-%m-%d %H:%M UTC") }} -</p> -{% endif %} {% if page.translations | length > 1 %} <p class="publish-date"> {{ trans(key="also_read", lang=lang) }} @@ -70,7 +65,7 @@ {% endif %} {% endblock %} {% block content %} - <div class="post-container full"> - {{ page.content | safe }} - </div> +<div class="post-container full"> +{{ page.content | safe }} +</div> {% endblock %} |