diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2024-06-19 14:44:10 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2024-06-19 14:44:10 +0200 |
commit | e0a989555b6bef9173088da9e0b980338a88ce0c (patch) | |
tree | 3e35bc65664e881d62cf14970d482884b80289f7 /theme/bulma/templates/index.html | |
parent | 3b3c4db1bdd29b46a23051fc5427197ce2831764 (diff) |
Swiched the theme to bulma-css
Diffstat (limited to 'theme/bulma/templates/index.html')
-rw-r--r-- | theme/bulma/templates/index.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/theme/bulma/templates/index.html b/theme/bulma/templates/index.html new file mode 100644 index 0000000..36cb150 --- /dev/null +++ b/theme/bulma/templates/index.html @@ -0,0 +1,50 @@ +{% extends "base.html" %} + +{% block content %} + +{% for article in articles_page.object_list %} +<article> + <header> + <h2><a href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ article.title }}</a></h2> + <p> + {{ _('Posted on %(when)s in %(category)s', + when=article.locale_date, + category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }} + + {% if article.tags and not HOME_HIDE_TAGS %} + • {{ _('Tagged with') }} + {% for tag in article.tags %} + <a class="tag" href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %} + {% endfor %} + {% endif %} + + {% if PLUGINS and 'post_stats' in PLUGINS %} + • {{ _('%(minutes)s min read', minutes=article.stats['read_mins']) }} + {% endif %} + </p> + </header> + <div class="content"> + {% if summarise or article.metadata['summary'] or SUMMARY_MAX_LENGTH %} + {% if article.featured_image %} + <img src="{{ article.featured_image }}"> + {% endif %} + <div>{{ article.summary }}</div> + {% if article.content != article.summary %} + <br> + <a class="button" + href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}"> + {{ _('Continue reading') }} + </a> + {% endif %} + {% else %} + {{ article.content }} + {% endif %} + </div> + {% if not loop.last %} + <hr /> + {% endif %} +</article> +{% endfor %} + +{% include "partial/pagination.html" %} +{% endblock %} |