lightspeed/templates/page.html

27 lines
926 B
HTML
Raw Normal View History

2020-04-13 19:19:58 +00:00
{% extends "index.html" %}
{% block title %}{{ page.title }} · {{ config.title }}{% endblock title %}
{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %}
2020-09-13 13:08:54 +00:00
{% block ogtitle %}{{ page.title }}{% endblock ogtitle %}
{% block ogdesc %}{{ page.description }}{% endblock ogdesc %}
{% block ogurl %}{{ page.permalink | safe }}{% endblock ogurl%}
{% block ogimage -%}
{%- if page.extra.image -%}{{ get_url(path=page.extra.image) | safe }}
{%- elif config.extra.ogimage -%}{{ get_url(path=config.extra.ogimage) | safe }}
{%- endif -%}
{%- endblock ogimage %}
2020-04-13 19:19:58 +00:00
{% block content %}
2020-04-14 18:42:35 +00:00
<article>
<h1>{{ page.title }}</h1>
2020-04-13 19:19:58 +00:00
2020-04-14 18:42:35 +00:00
{% if page.date %}
<p style="font-size:90%;">Posted on <time datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%B %d, %Y") }}</time></p>
{% endif %}
{{ page.content | safe }}
</article>
2020-04-13 19:19:58 +00:00
{% endblock content %}