diff options
Diffstat (limited to 'templates/article.html')
-rw-r--r-- | templates/article.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/article.html b/templates/article.html new file mode 100644 index 0000000..27f23e9 --- /dev/null +++ b/templates/article.html @@ -0,0 +1,35 @@ +{% extends "base.html" %} + +{% block content %} +<div class="article post" role="article" lang="{{ article.lang }}"> + <article> + <h1 class="topmost">{{ article.title }}</h1> + + {# Article meta information #} + <p class="article-meta"> + <time datetime="{{ article.date }}"> + {{ article.date | strftime("%B %d, %Y") }} + </time> + in + <a href="{{ SITEURL }}/{{ article.category.url }}"> + {{ article.category.name }} + </a> + </p> + + + <div class="tags"> + <ul class="tags"> + {% for tag in article.tags %} + <li> + <a href="{{ SITEURL }}/ {{ tag.url }}">{{ tag.name }}</a> + </li> + {% endfor %} + </ul> + </div> + + <div class="content"> + {{ article.content | safe }} + </div> + </article> +</div> +{% endblock %} |