website/templates/page.html

17 lines
641 B
HTML

{% extends "index.html" %}
{% block title %}{{ page.title }} - {{ config.title }}{% endblock %}
{% block main %}
<article class="h-entry">
<h2 class="p-name">{{ page.title }}</h2>
{%- if page.date -%}<time class="dt-published" datetime="{{ page.date }}">📅&nbsp;{{ page.date | date(format="%d/%m/%Y") }}</time>{%- endif -%}
<div class="e-content">{{ page.content | safe }}</div>
{% if config.extra.forge %}
<aside class="source">
<a href="{{ config.extra.forge.browse }}content/{{ page.path }}index.md">Source</a>
</aside>
{% endif %}
</article>
{% endblock %}