changeset 113:e96a3e09d4e9

blog/articles: use short dates when severals items are shown because the page is cached, and relative for single view.
author Goffi <goffi@goffi.org>
date Fri, 26 Jan 2018 07:51:58 +0100
parents 988a1c0e8419
children 1d0ddeb79903
files default/blog/articles.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/default/blog/articles.html	Fri Jan 26 07:50:33 2018 +0100
+++ b/default/blog/articles.html	Fri Jan 26 07:51:58 2018 +0100
@@ -1,5 +1,5 @@
 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
-{% set dates_format='relative' %}
+{% set dates_format='relative' if single else 'short' %}
 {% import 'blog/macros.html' as blog with context %}
 
 {% block title scoped -%}