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/index.html | |
parent | 00986ab80df4b6be2d1306671907e2b2378e487f (diff) | |
download | pelican-themes-5c231ceade17e7f5b1bba90e845dd2d17e54da1c.tar.gz |
uikit demo theme ported to pelican (#385)
Diffstat (limited to 'uikit/templates/index.html')
-rw-r--r-- | uikit/templates/index.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/uikit/templates/index.html b/uikit/templates/index.html new file mode 100644 index 0000000..bd3d405 --- /dev/null +++ b/uikit/templates/index.html @@ -0,0 +1,32 @@ +{% extends "uikit.html" %} +{% import 'article_macros.html' as article_macros %} +{% block head %} +{{super()}} +{% endblock head %} +{% block titlename %}{{'welcome!'|capitalize}}{% endblock titlename %} +{% block content %} +{% block heading %} +<h1 class="heading uk-text-primary"> +{{ HEADING }} +</h1> +{% endblock heading %} +{% if articles %} + {% for article in articles|sort(reverse=True,attribute='date') %} + <h1 class="{% if CAPITALIZE_HEADINGS %}capitalize{% endif %} uk-article-title"> + <a href="/{{ article.url }}">{{ article.title }}</a> + </h1> + <p class="uk-article-meta"> + {{ article_macros.get_meta(SITEURL, article) }} + </p> + {{ article.summary }} + <p> + <a class="uk-button uk-button-primary" href="{{SITEURL}}/{{article.url}}">Continue Reading</a> + <!-- + <a class="uk-button" href="">Comments</a> + --> + </p> + {% endfor %} + {# + #} +{% endif %} +{% endblock content %} |