Move all files to sculpin/
This commit is contained in:
parent
c5d71803a5
commit
0f61b4e9ee
1514 changed files with 0 additions and 0 deletions
22
sculpin/source/_includes/podcast/other-episodes.html.twig
Normal file
22
sculpin/source/_includes/podcast/other-episodes.html.twig
Normal file
|
@ -0,0 +1,22 @@
|
|||
{% set other_episodes = [] %}
|
||||
|
||||
{% for episode in all_episodes %}
|
||||
{% if guest in episode.guests and episode.topic is not same as topic %}
|
||||
{% set other_episodes = other_episodes|merge([episode]) %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if other_episodes is not empty %}
|
||||
<section>
|
||||
<h2>Other episodes with {{ guest }}</h2>
|
||||
|
||||
<ul>
|
||||
{% for episode in other_episodes %}
|
||||
<li>
|
||||
<a href="{{ episode.url|trim('/', 'right') }}">{{ episode.topic }}</a>
|
||||
- {{ episode.date|date('jS F Y') }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue