diff options
author | Daniel Saunders <daniel.saunders@gmail.com> | 2021-07-09 10:57:48 +0300 |
---|---|---|
committer | Daniel Saunders <daniel.saunders@gmail.com> | 2021-07-09 10:57:48 +0300 |
commit | 4fad38bb62fda2056aa9cd612f57baf85a01206d (patch) | |
tree | 8ab9fccdcffa511c064fa79fae99f09a7a86ba9e | |
parent | c2d4e23a1bffedab2ddcefd6f5e6b61f0e39da60 (diff) |
Optional Spotify Podcast Link
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/sermons/list.html | 15 |
2 files changed, 12 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5fe45ca..0e9bfae 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -115,6 +115,7 @@ unsafe = true sub_category = "Christianity" iTunes = "https://itunes.apple.com/us/podcast/tgc-word-of-the-week/id1034013280" feed = "https://www.thegospelcoalition.org/podcasts/word-of-the-week/feed/?feed=podcast" + spotify = "https://open.spotify.com/show/1iE3aJkf8fJ2FVTvJGFd4h" [params.map] service = "osm" #"osm" for OpenStreetMaps, "google" for Google Maps, or "mapbox" for Mapbox, see SETUP.md diff --git a/layouts/sermons/list.html b/layouts/sermons/list.html index e18365d..e27e6bc 100644 --- a/layouts/sermons/list.html +++ b/layouts/sermons/list.html @@ -3,14 +3,21 @@ <section id="main" class="container"> <header> <h2>{{ .Title | title }}</h2> - {{ if (and (.Site.Params.Podcast.itunes) (.Site.Params.Podcast.feed)) }} + {{ if (.Site.Params.Podcast.feed) }} <ul class="icons"> <li> <a href="https://subscribeonandroid.com/{{ index (split .Site.Params.Podcast.feed "://") 1 }}" target="_blank"><i class="icon fab fa-android"><span class="label">Subscribe on Android</span></i>Subscribe on Android</a> </li> - <li> - <a href="{{ .Site.Params.Podcast.iTunes }}" target="_blank"><i class="icon fab fa-apple"><span class="label">Subscribe on iTunes</span></i>Subscribe in iTunes</a> - </li> + {{ if (.Site.Params.Podcast.itunes ) }} + <li> + <a href="{{ .Site.Params.Podcast.iTunes }}" target="_blank"><i class="icon fab fa-apple"><span class="label">Subscribe on Apple Podcasts</span></i>Subscribe on Apple Podcasts</a> + </li> + {{ end }} + {{ if (.Site.Params.Podcast.spotify ) }} + <li> + <a href="{{ .Site.Params.Podcast.spotify }}" target="_blank"><i class="icon fab fa-spotify"><span class="label">Subscribe on Spotify</span></i>Subscribe in Spotify</a> + </li> + {{ end }} </ul> {{ end }} </header> |