site/templates/page.html
2021-11-30 21:32:19 +01:00

34 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block metadata -%}
{%- if page.extra.episode -%}
{{ super() }}
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ page.title }}">
<meta name="twitter:description" content="{{ page.description }}">
<meta name="twitter:image" content="{{ get_url(path="assets/poster.jpg") | safe }}">
<meta property="og:type" content="website">
<meta property="og:site_name" content="{{ config.title }}">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:url" content="{{ page.permalink }}">
<meta property="og:description" content="{{ page.description }}">
<meta property="og:image" content="{{ get_url(path="assets/poster.jpg") | safe }}">
{%- for format in config.extra.formats %}
<meta property="og:audio" content="{{ get_url(path="episodes/" ~ page.slug ~ "." ~ format.ext) | safe }}">
<meta property="og:audio:type" content="{{ format.mime_type }}">
{%- endfor %}
{%- endif %}
{%- endblock metadata %}
{% block content -%}
{% include "post.html" %}
{%- endblock content %}
{% block scripts -%}
{{ super() }}
{%- if page.extra.episode %}
{% include "podlove-player-script.html" %}
{%- endif %}
{%- endblock scripts %}