2020-08-11 16:14:38 +02:00
|
|
|
{% macro podlove_subscribe_button(size="medium") %}
|
|
|
|
<noscript>
|
|
|
|
<img src="{{ get_url(path="assets/poster.jpg") | safe }}" alt="Logo von {{ config.title }}">
|
|
|
|
<a href="{{ get_url(path="subscribe") }}"><button class="noscript-subscribe-button">Abonnieren</button></a>
|
|
|
|
</noscript>
|
|
|
|
<script
|
|
|
|
class="podlove-subscribe-button"
|
|
|
|
src="{{ get_url(path="vendor/podlove-subscribe-button/javascripts/app.js") | safe }}"
|
2021-12-11 16:55:18 +01:00
|
|
|
data-language="{{ lang }}"
|
2020-08-11 16:14:38 +02:00
|
|
|
data-size="{{ size }}"
|
|
|
|
data-format="cover"
|
|
|
|
data-json-data="podcastData"
|
|
|
|
data-colors="{{ config.extra.theme.main | default(value="#2B8AC6") }}"
|
|
|
|
></script>
|
|
|
|
{% endmacro podlove_subscribe_button %}
|
|
|
|
{% macro title(page) -%}
|
|
|
|
{#- tera lacks zero padding and also log operator -#}
|
2021-12-11 17:01:19 +01:00
|
|
|
{%- if page.extra.episode is defined -%}
|
2020-08-11 16:14:38 +02:00
|
|
|
{%- set len = page.extra.episode | as_str | length -%}
|
|
|
|
{{ config.extra.acronym }}{% for i in range(end=config.extra.pad_to - len) %}0{% endfor %}{{ page.extra.episode }} {% endif -%}
|
|
|
|
{{ page.title }}
|
|
|
|
{%- endmacro poster %}
|