Add dates to podcast index

This commit is contained in:
davegson 2019-11-29 15:19:48 +01:00
parent cd39d1c172
commit 1bc5448eaf
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@
<div> <div>
{% assign title_length = episode.title | size %} {% assign title_length = episode.title | size %}
<span>{{ episode.title | slice: 7, title_length }}</span> <span>{{ episode.title | slice: 7, title_length }}</span>
<p>{{ episode.title | slice: 0, 4 }}</p> <p>{{ episode.title | slice: 0, 4 }} - {{ episode.date | date: "%-d. %b %Y" }}</p>
</div> </div>
</a> </a>
{% endfor %} {% endfor %}

View file

@ -17,6 +17,7 @@ layout: podcast
<a class="description" href="{{ episode.url }}">{{ episode.title | slice: 7, title_length }}</a> <a class="description" href="{{ episode.url }}">{{ episode.title | slice: 7, title_length }}</a>
<div class="meta"> <div class="meta">
<span class="ui small text"> <span class="ui small text">
<i class="calendar alternate icon"></i>{{ episode.date | date: "%-d. %b %Y" }},
{% for host in episode.hosts %} {% for host in episode.hosts %}
<i class="user icon"></i>{{ host }} <i class="user icon"></i>{{ host }}
{% endfor %} {% endfor %}