Skip to content

Instantly share code, notes, and snippets.

@benhartwich
Created June 9, 2022 07:31
Show Gist options
  • Save benhartwich/70f11c220fedac5d3e69ffe8716fd3f1 to your computer and use it in GitHub Desktop.
Save benhartwich/70f11c220fedac5d3e69ffe8716fd3f1 to your computer and use it in GitHub Desktop.
Podlove Templates
{% if not is_feed() %}
{# display web player for episode #}
{{ episode.player }}
{# display contributors if module is active #}
{% if shortcode_exists("podlove-episode-contributor-list") %}
<h3>Am Mikrofon:</h3>
{# see http://docs.podlove.org/podlove-publisher/reference/shortcodes.html#contributors for parameters #}
[podlove-episode-contributor-list]
{% endif %}
{% if shortcode_exists("podlove-podcast-social-media-list") %}
<h3>Andere Kanäle</h3>
[podlove-podcast-social-media-list]
{% endif %}
<h3>Newsletter</h3>
<p>Immer up to date bleiben? Mein Newsletter:
[newsletter_signup_form id=1]</p>
<h3>Spenden</h3>
<ul class="podcast_services">
{% for service in podcast.services({category: "donation"}) %}
<li>
<a href="{{ service.profileUrl }}" title="{{ service.description }}">
{{
service.image.html({
width: 16,
alt: service.title ~ " Icon"
})
}} {{ service.title }}
</a>
</li>
{% endfor %}
</ul>
<style>
.podcast_services li {
list-style: none;
}
</style>
<br>
<h3>Details zum Podcast</h3>
{% endif %}
{% if not is_feed() and episode is not null %}
{% if episode.show.slug == "xyz" %}
{{ episode.player({ config: "xyz", theme: "default", template: "test", show: "xyz"}) }}
{% elseif episode.show.slug == "stw" %}
{{ episode.player({ config: "stw", theme: "default", template: "test", show: "stw"}) }}
{% elseif episode.show.slug == "" %}
{{ episode.player({ config: "default", theme: "default", template: "default"}) }}
{% endif %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment