mirror of
https://github.com/jgonyea/grav-plugin-podcast.git
synced 2025-12-05 16:00:02 +01:00
Placeholder for All Series. Fixed Series image list
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{% for e in episodes %}
|
||||
<li>
|
||||
<a href ="{{ e.url }}">
|
||||
{% if ((e.header.podcast.itunes.image)|first) %}
|
||||
{% if (e.header.podcast.itunes.image) %}
|
||||
{{ e.media[e.header.podcast.itunes.image].zoomCrop(200, 200).html(e.header.podcast.itunes.image,'','podcast-content-image')|raw }}
|
||||
{% else %}
|
||||
<img src="{{ url("plugin://podcast/assets/images/default.jpg") }}" class="podcast-content-image" />
|
||||
|
||||
@@ -2,12 +2,16 @@
|
||||
{% if (series|length > 0)%}
|
||||
<h2>{{ 'PLUGIN_PODCAST.WORDS.LATEST'|t|e }} {{ 'PLUGIN_PODCAST.WORDS.SERIES'|t|e|pluralize }}</h2>
|
||||
|
||||
<div class="channel-links">
|
||||
All Series
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
{% for s in series %}
|
||||
<li>
|
||||
<a href ="{{ s.url }}">
|
||||
{% if ((s.header.podcast.itunes.image)|first) %}
|
||||
{{ s.media[s.header.podcast.itunes.image].zoomCrop(200, 200).html(s.header.podcast.itunes.image,'','podcast-content-image')|raw }}
|
||||
{% if (s.header.series.image) %}
|
||||
{{ s.media[s.header.series.image].zoomCrop(200, 200).html(s.header.series.image,'','podcast-content-image')|raw }}
|
||||
{% endif %}
|
||||
<h3>{{ s.title }}
|
||||
{% if (s.header.podcast.audio.meta.duration) %}
|
||||
|
||||
Reference in New Issue
Block a user