diff options
Diffstat (limited to 'bricabrac/templates/article.html')
-rw-r--r-- | bricabrac/templates/article.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bricabrac/templates/article.html b/bricabrac/templates/article.html new file mode 100644 index 0000000..61d4a45 --- /dev/null +++ b/bricabrac/templates/article.html @@ -0,0 +1,15 @@ +{%- if article.lang %}{% set DEFAULT_LANG = article.lang %}{% endif -%} +{% extends "base.html" %} +{% block title %}{{ super() }} : {{ article.title }}{% endblock %} +{% block content %} +<header> +<h1> +<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> : +<a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1> +{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %} +</header> +<article> +<div class="meta" style="text-align:right;">{% if article.translations %}{% for translation in article.translations %}{{ article.lang or DEFAULT_LANG }} | <a href="{{ SITEURL }}/{{ translation.url }}"><u>{{ translation.lang }}</u></a>{% endfor %}{% endif %}</div> +{{ article.content }} +</article> +{% endblock %} |