sites/flux.vision/flux/templates/article.html

18 lines
1 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% import "_macros.html" as m %}
{% block title %}{{ article.title|striptags }} · {{ SITENAME }}{% endblock %}
{% set bgi = article.metadata.get('background') if not article.metadata.get('background_missing')
else (article.metadata.get('thumb') if not article.metadata.get('thumb_missing') else none) %}
{% block bg %}{% if bgi %} style="background-image:url('{{ SITEURL }}{{ bgi }}')"{% endif %}{% endblock %}
{% block slate %}{{ article.category }}{% endblock %}
{% block content %}
<div class="hero-title"><h1>{{ article.title }}</h1></div>
<div id="article-meta">
<time datetime="{{ article.date.isoformat() }}">{{ article.date.strftime('%d %b %Y' if article.category.name == 'blog' else '%b %Y') }}</time>
{%- if article.metadata.get('for') or article.metadata.get('with')
or article.metadata.get('hiredby') or article.metadata.get('photosby') %}
<span class="sep">/</span> {{ m.credits(article) }}{% endif %}
</div>
<div id="article">{{ article.content }}</div>
{% endblock %}