diff options
author | Valentin Heinz <inktrap@users.noreply.github.com> | 2017-04-08 14:03:25 +0200 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2017-04-08 14:03:25 +0200 |
commit | 5c231ceade17e7f5b1bba90e845dd2d17e54da1c (patch) | |
tree | f4f07dbbac2c51c8a0af1e1a24f11e030a2e4155 /uikit/templates/article_macros.html | |
parent | 00986ab80df4b6be2d1306671907e2b2378e487f (diff) | |
download | pelican-themes-5c231ceade17e7f5b1bba90e845dd2d17e54da1c.tar.gz |
uikit demo theme ported to pelican (#385)
Diffstat (limited to 'uikit/templates/article_macros.html')
-rw-r--r-- | uikit/templates/article_macros.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/uikit/templates/article_macros.html b/uikit/templates/article_macros.html new file mode 100644 index 0000000..79f0923 --- /dev/null +++ b/uikit/templates/article_macros.html @@ -0,0 +1,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 %} |