Fix episode 0 not being a podcast
This commit is contained in:
parent
c28363e47a
commit
1391ef32c9
|
@ -15,7 +15,7 @@
|
||||||
{% endmacro podlove_subscribe_button %}
|
{% endmacro podlove_subscribe_button %}
|
||||||
{% macro title(page) -%}
|
{% macro title(page) -%}
|
||||||
{#- tera lacks zero padding and also log operator -#}
|
{#- tera lacks zero padding and also log operator -#}
|
||||||
{%- if page.extra.episode -%}
|
{%- if page.extra.episode is defined -%}
|
||||||
{%- set len = page.extra.episode | as_str | length -%}
|
{%- 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 -%}
|
{{ config.extra.acronym }}{% for i in range(end=config.extra.pad_to - len) %}0{% endfor %}{{ page.extra.episode }} {% endif -%}
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block metadata -%}
|
{% block metadata -%}
|
||||||
{%- if page.extra.episode -%}
|
{%- if page.extra.episode is defined -%}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
<meta name="twitter:title" content="{{ page.title }}">
|
<meta name="twitter:title" content="{{ page.title }}">
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
{% block scripts -%}
|
{% block scripts -%}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{%- if page.extra.episode %}
|
{%- if page.extra.episode is defined %}
|
||||||
{% include "podlove-player-script.html" %}
|
{% include "podlove-player-script.html" %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endblock scripts %}
|
{%- endblock scripts %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{%- if page.extra.episode %}
|
{%- if page.extra.episode is defined %}
|
||||||
{%- set episodes = load_data(path="static/episodes.json") -%}
|
{%- set episodes = load_data(path="static/episodes.json") -%}
|
||||||
<div class="podlove-player" id="podlove-player-{{ page.slug }}" data-id="{{ page.slug }}">
|
<div class="podlove-player" id="podlove-player-{{ page.slug }}" data-id="{{ page.slug }}">
|
||||||
<audio controls preload="none">
|
<audio controls preload="none">
|
||||||
|
|
Loading…
Reference in a new issue