{% extends "base.html" %}
{% block style %}
<link rel="stylesheet" href="/post/page.css"/>
{% endblock style %}
{% block title %}
{{ page.title }}
{% endblock title %}
{% block content %}
<h1 id="title">
    {{ page.title }}
</h1>
<p id="subtitle">{{ page.date }}</p>
<div id="page_content">
{{ page.content | safe }}
</div>

{% if config.extra.mastodon_user %}
<meta name="fediverse:creator" content="{{ config.extra.mastodon_user}}"/>
{% endif %}
<meta name="og:title" content="{{ page.title }}"/>
<meta name="og:type" content="article"/>
<meta name="article:published_time" content="{{ page.date }}"/>
{% if page.updated %}
<meta name="article:modified_time" content="{{ page.updated }}"/>
{% endif %}
{% if page.authors[0] %}
<meta name="og:article:author" content="{{ page.authors[0] }}"/>
{% elif config.author %}
<meta name="og:article:author" content="{{ config.author }}"/>
{% endif %}
<meta name="og:url" content="{{ page.permalink }}"/>
{% if page.extra.image %}
<meta name="og:image" content="{{ page.permalink }}{{ page.extra.image }}"/>
{% endif %}
{% endblock content %}
