54 lines
1.3 KiB
HTML
54 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
||
|
||
{% block title %}
|
||
{{ page.title }} – {{ SITENAME }}
|
||
{% endblock %}
|
||
{% block metadesc %}
|
||
{% if page.summary %}{{ page.summary|e }}{% else %}{{ super() }}{% endif %}
|
||
{% endblock %}
|
||
|
||
{% block content_all %}
|
||
<article>
|
||
|
||
{% block content_header %}
|
||
<header id="content-header">
|
||
<h1>{{ page.title }}</h1>
|
||
</header>
|
||
{% endblock content_header %}
|
||
|
||
{% block content_body %}
|
||
<div id="content-body">
|
||
<div class="body-column-text">
|
||
{{ page.content }}
|
||
</div>
|
||
<div class="body-column-image">
|
||
{% if page.featured_image %}
|
||
{% from 'includes/macros.html' import fi %}
|
||
{% set i = page.featured_image[0] %}
|
||
{{ fi(i.pic, i.link, i.text, i.alt, i.credit, i.credit_link) }}
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
{% endblock content_body %}
|
||
|
||
{% block content_footer %}
|
||
{% if page.footer_line %}
|
||
<footer class="content-footer">
|
||
<p>{{ page.footer_line }}</p>
|
||
</footer>
|
||
{% elif page.footer_include %}
|
||
<footer class="content-footer">
|
||
{% include page.footer_include %}
|
||
</footer>
|
||
{% elif page.footer_includes %} {# plural #}
|
||
<footer class="content-footer">
|
||
{% for i in page.footer_includes %}
|
||
{% include i %}
|
||
{% if not loop.last %} <hr />{% endif %}
|
||
{% endfor %}
|
||
</footer>
|
||
{% endif %}
|
||
{% endblock content_footer %}
|
||
|
||
</article>
|
||
{% endblock content_all %} |