site/templates/page.html

34 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2020-08-11 16:14:38 +02:00
{% extends "base.html" %}
{% block metadata -%}
2021-12-11 17:01:19 +01:00
{%- if page.extra.episode is defined -%}
2020-08-11 16:14:38 +02:00
{{ 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 }}">
2020-08-11 16:14:38 +02:00
<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 }}">
2020-08-11 16:14:38 +02:00
{%- 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() }}
2021-12-11 17:01:19 +01:00
{%- if page.extra.episode is defined %}
2020-08-11 16:14:38 +02:00
{% include "podlove-player-script.html" %}
{%- endif %}
{%- endblock scripts %}