aboutsummaryrefslogtreecommitdiff
path: root/theme/bulma/templates/article.html
diff options
context:
space:
mode:
Diffstat (limited to 'theme/bulma/templates/article.html')
-rw-r--r--theme/bulma/templates/article.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/theme/bulma/templates/article.html b/theme/bulma/templates/article.html
new file mode 100644
index 0000000..bc78ec9
--- /dev/null
+++ b/theme/bulma/templates/article.html
@@ -0,0 +1,50 @@
+{% extends "base.html" %}
+{% block html_lang %}{{ article.lang }}{% endblock %}
+
+{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
+
+{% block head %}
+ {{ super() }}
+
+ {% import 'translations.html' as translations with context %}
+ {% if translations.entry_hreflang(article) %}
+ {{ translations.entry_hreflang(article) }}
+ {% endif %}
+
+ {% if article.description %}
+ <meta name="description" content="{{article.description}}" />
+ {% endif %}
+
+ {% for tag in article.tags %}
+ <meta name="tags" content="{{tag}}" />
+ {% endfor %}
+
+{% endblock %}
+
+{% block content %}
+<section id="content" class="body content">
+ <header>
+ <h2 class="entry-title">
+ <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
+ title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
+ {% import 'translations.html' as translations with context %}
+ {{ translations.translations_for(article) }}
+ </header>
+ <footer class="post-info is-size-5 has-text-primary-light">
+ {{ _('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 %}
+ <div class="tags">
+ Tags:
+ {% for tag in article.tags %}
+ <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
+ {% endfor %}
+ </div>
+ {% endif %}
+ </footer><!-- /.post-info -->
+ <div class="entry-content">
+ {{ article.content }}
+ </div><!-- /.entry-content -->
+</section>
+{% endblock %}