aboutsummaryrefslogtreecommitdiffstats
path: root/uikit/templates/article_macros.html
blob: 79f09235a13d75b8260dd5b0e1b6d0cbd320c2e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% import 'time_macros.html' as time_macros %}

{% macro get_meta(SITEURL, article, has_category=True) -%}

Published on {{ time_macros.get_time(article, article.date) }}
    {% if article.modified %}
    and updated on {{ time_macros.get_time(article, article.locale_modified) }}
    {% endif %}
    {% if article.authors %}
        by {% for author in article.authors %}
        <a class="url fn" href="/{{ article.author.url }}">{{ author }}</a>
        {% endfor %}
    {% endif %}
    {% if has_category %}
    posted in <a href="/{{ article.category.url }}">{{ article.category }}</a>
    {% endif %}
    <br/>
    {% for tag in article.tags %}
    <a href="/{{ tag.url }}" class="uk-icon-tag">{{ tag }}</a>
    {% endfor %}
{%- endmacro %}