Do not include episode number in title

It confuses many people what SCH001 means and it also looks somewhat
weird, especially since we do not refer to the episode numbers.
This commit is contained in:
Simon Bruder 2022-01-06 19:41:01 +01:00
parent 0dfd8746d3
commit 4972e93119
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
4 changed files with 3 additions and 8 deletions

View file

@ -14,9 +14,4 @@
></script>
{% endmacro podlove_subscribe_button %}
{% macro title(page) -%}
{#- tera lacks zero padding and also log operator -#}
{%- if page.extra.episode is defined -%}
{%- 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 %}

View file

@ -21,7 +21,7 @@
</div>
<script id="config-episode-{{ page.slug }}" type="application/json">
{
"title": {{ macros::title(page=page) | json_encode | safe }},
"title": {{ page.title | json_encode | safe }},
"subtitle": {{ page.extra.subtitle | default(value="") | json_encode | safe }},
"summary": {{ page.description | json_encode | safe }},
"publicationDate": {{ page.date | date(format="%+") | json_encode | safe }},

View file

@ -1,5 +1,5 @@
<article>
<h2 class="title mb-2"><a href="{{ page.permalink | safe }}">{{ macros::title(page=page) }}</a></h2>
<h2 class="title mb-2"><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h2>
<div class="post-meta"><span>{% if page.date %}Veröffentlicht am {{ page.date | date(format="%d.%m.%Y") }}{% endif %}</span></div>
<div class="content mt-5">

View file

@ -27,7 +27,7 @@
{%- for page in pages %}
{%- set episode_meta = episodes_meta[page.slug] -%}
<item>
<title>{{ macros::title(page=page) }}</title>
<title>{{ page.title }}</title>
<link>{{ page.permalink | escape_xml | safe }}</link>
<guid>{{ page.permalink | escape_xml | safe }}</guid>
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>