diff options
Diffstat (limited to 'uikit/templates/time_macros.html')
-rw-r--r-- | uikit/templates/time_macros.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/uikit/templates/time_macros.html b/uikit/templates/time_macros.html new file mode 100644 index 0000000..79f0756 --- /dev/null +++ b/uikit/templates/time_macros.html @@ -0,0 +1,4 @@ +{% macro get_time(article, date) -%} + {% set datetime = date|strftime('%Y-%m-%d') %} + <time datetime="{{datetime}}">{{ article.locale_date|trim }}</time> +{%- endmacro %} |