feat: add more podcast content

This commit is contained in:
Devin Haska 2024-02-20 20:24:11 -08:00
parent 92ea3dfb7b
commit 2bc1b51e91
16 changed files with 148 additions and 40 deletions

View file

@ -6,17 +6,20 @@ layout: base
<article class="[ catalogue ] [ flow ]">
{% from "macros/date.njk" import format %}
{{ format(date) }}
<section class="[ catalogue-meta ] [ gap-1 mb-1 ]">
<section class="[ catalogue-meta ] [ flow ]">
{% if image %}
{% image image, "", "" %}
{% endif %}
<div>
<h1>{{ title }}</h1>
{% if subtitle %}<h3 class="[ text-fadeText my-0.5 ]">{{ subtitle }}</h3>{% endif %}
{% if author %}<span class="[ text-fadeText ]">by</span> {{ author }}{% endif %}
{% import "macros/tags.njk" as tags %}
{{ tags.list(filteredTags) }}
</div>
<h1>{{ title }}</h1>
{% if subtitle %}<h3 class="[ text-fadeText my-0.5 ]">{{ subtitle }}</h3>{% endif %}
{% if author %}
<p>
<span class="[ text-fadeText ]">by</span> {{ author }}
</p>
{% endif %}
{% import "macros/tags.njk" as tags %}
{{ tags.list(filteredTags) }}
</section>
<hr class="[ my-3 ]" />
{{ content | safe }}
</article>

View file

@ -6,16 +6,15 @@ layout: base
<article class="[ catalogue ] [ flow ]">
{% from "macros/date.njk" import format %}
{{ format(date) }}
<section class="[ catalogue-meta ] [ gap-1 mb-1 ]">
<section class="[ catalogue-meta ] [ flow ]">
{% if image %}
{% image image, "", "" %}
{% endif %}
<div>
<h1>{{ title }}</h1>
<h2 class="[ text-fadeText my-0.5 ]">{{ year }}</h2>
{% import "macros/tags.njk" as tags %}
{{ tags.list(filteredTags) }}
</div>
<h1>{{ title }}</h1>
<h2 class="[ text-fadeText my-0.5 ]">{{ year }}</h2>
{% import "macros/tags.njk" as tags %}
{{ tags.list(filteredTags) }}
</section>
<hr class="[ my-3 ]" />
{{ content | safe }}
</article>

23
src/_layouts/podcast.html Normal file
View file

@ -0,0 +1,23 @@
---
layout: base
---
<article class="[ catalogue ] [ flow ]">
{% from "macros/date.njk" import format %}
{{ format(date) }}
<section class="[ catalogue-meta ] [ flow ]">
{% if image %}
{% image image, "", "" %}
{% endif %}
<h1>{{ title }}</h1>
{% if subtitle %}<h2 class="[ text-fadeText ]">{{ subtitle }}</h2>{% endif %}
</section>
<hr class="[ my-3 ]" />
{{ content | safe }}
<a href="{{ url }}"
class="[ flex mt-1 items-center gap-0.5 ]"
target="_blank"
rel="external noreferrer noopener">
{% include "svgs/link.svg" %}
Listen to the podcast</a>
</article>