Skip to content

Instantly share code, notes, and snippets.

@benhartwich
Created June 9, 2022 07:31
Show Gist options
  • Select an option

  • Save benhartwich/70f11c220fedac5d3e69ffe8716fd3f1 to your computer and use it in GitHub Desktop.

Select an option

Save benhartwich/70f11c220fedac5d3e69ffe8716fd3f1 to your computer and use it in GitHub Desktop.

Revisions

  1. benhartwich created this gist Jun 9, 2022.
    42 changes: 42 additions & 0 deletions Orgelpodcast Template
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    {% 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 %}
    9 changes: 9 additions & 0 deletions Show Config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    {% 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 %}