Move podcasts to _media collection

This commit is contained in:
davegson 2021-03-25 17:28:52 +01:00
parent 71070e03f4
commit 79103b7428
31 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ title: Safing - Love Freedom
<div class="mt-8 lg:mt-32">
<ul class="md:grid md:grid-cols-2 lg:grid-cols-3 md:col-gap-8 md:row-gap-10 max-w-sm mx-auto md:max-w-full">
<!-- podcast -->
{% assign sorted_podcasts = site.podcasts | reverse %}
{% assign sorted_podcasts = site.medias | reverse | where:"category","podcast" %}
{% for episode in sorted_podcasts limit: 1 %}
{% include thumbnail_podcast.html pre_header="PODCAST" %}
{% endfor %}

View file

@ -44,7 +44,7 @@ layout: null
<itunes:category text="{{ site.podcast_subcategory_two }}" />
</itunes:category>
{% for episode in site.podcasts %}
{% for episode in site.medias | where:"category","podcast" %}
<item>
<title>{{ episode.title | xml_escape }}</title>
<link>{{ site.url }}{{ episode.url }}</link>

View file

@ -24,7 +24,7 @@ layout: page
</div>
<div class="mt-8 md:mt-16 lg:mt-32">
<ul class="md:grid md:grid-cols-2 lg:grid-cols-3 md:col-gap-8 md:row-gap-10">
{% assign sorted_podcasts = site.podcasts | reverse %}
{% assign sorted_podcasts = site.medias | reverse | where:"category","podcast" %}
{% for episode in sorted_podcasts %}
{% include thumbnail_podcast.html %}
{% endfor %}