diff default/blog/articles.html @ 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 e1a0d5678837
children 1d0ddeb79903
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 -%}