-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNatürlich.SH Archiv
86 lines (82 loc) · 3.99 KB
/
Natürlich.SH Archiv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{# See it working: https://www.natuerlich-sh.de/archiv #}
<p>{{ podcast.summary }}</p>
{# inserts the summary of the podcast #}
<p> </p>
<table class="tabelle">
{% for episode in podcast.episodes %}
{% set kategorie = episode.show.title %}
{# iterate through all episodes and set the variable 'kategorie' to the category of that specific episode #}
<tr class="zeile">
<td class="zelle-bild">
<a href="{{ episode.url }}"><img src="{{ episode.image({fallback: true}).url }}" alt="{{ episode.title }}" title="{{ episode.title }}" class="logo"></a><br />
{# display the episode cover if available or use the podcast cover instead #}
{% if podcast.episodes|length > 10 %}
{# this feature makes sense if there are more than 10 episodes: check the category of the episode and deliver the subscribe-button for the show the episode is in #}
{% if kategorie == "Landeskunde" %}
<span class="landeskunde">{{ kategorie }}</span><br />
{{ podcast.subscribeButton({format: 'rectangle', color: '#1EABE1', style: 'frameless', size: 'small', show: 'landeskunde'}) }}
{% elseif kategorie == "Naturkunde" %}
<span class="naturkunde">{{ kategorie }}</span><br />
{{ podcast.subscribeButton({format: 'rectangle', color: '#c1272f', style: 'frameless', size: 'small', show: 'naturkunde'}) }}
{% endif %}
{% endif %}
</td>
<td class="zelle-meta"><span class="episodentitel"><a href="{{ episode.url }}">{{ episode.post.post_title }}</a></span> vom {{ episode.publicationdate.format('d.m.Y') }}<br />{{ episode.subtitle }}<br />
{# ATTENTION! Starting with Podlove Publisher 3.0 you can access the post title with episode.post_title and you should use that instead #}
{# insert link and title of the episode, show date of publication and a very short summary #}
<small>
<strong>Moderation: </strong>
{% for contributor in episode.contributors({role: 'moderation'}) %}{{ contributor.name }}{% if not loop.last %} und {% endif %}{% endfor %}
{# iterate through and list all contributors with the role 'moderation' of this episode, seperate with commas #}
{% if episode.contributors({role: 'experte'})|length > 0 %}
{# check for contributors with the role 'experte' and list with organisation and jobtitle, seperate with commas #}
<strong>Experten:</strong>
{% for contributor in episode.contributors({role: 'experte'}) %}{{ contributor.name }} ({{ contributor.organisation }}){% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% if episode.contributors({role: 'redaktion'})|length > 0 %}
{# check for contributors with the role 'redaktion' and list with comment or jobtitle, seperate with commas #}
<strong>Redaktionelle Unterstützung:</strong>
{% for contributor in episode.contributors({role: 'redaktion'}) %}{{ contributor.name }} ({{ contributor.comment }}){% if not loop.last %}, {% endif %}{% endfor %}
{% else %}
{% endif %}
</small></td>
</tr>
{% endfor %}
</table>
<style>
.tabelle {
border: white 1px solid;
}
.zelle-bild {
width: 130px;
vertical-align:top;
border: white 1px solid;
}
.zelle-meta {
vertical-align:top;
border: white 1px solid;
}
.episodentitel {
font-family: 'Kanit';
font-weight: bold;
}
.logo {
width: 128px;
border: white 1px solid;
text-align: center;
}
.zeile {
margin-bottom: 20px;
border-bottom: 1px solid black;
}
.landeskunde {
color: #1EABE1;
font-family: 'Kanit';
font-weight: bold;
}
.naturkunde {
color: #c1272f;
font-family: 'Kanit';
font-weight: bold;
}
</style>