Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Reddington <791642+chrisreddington@users.noreply.github.com>2020-12-23 00:07:03 +0300
committerGitHub <noreply@github.com>2020-12-23 00:07:03 +0300
commit7d7d88c4fa334036b52612b1262c117dc589404e (patch)
treed189bc23b364b0934156182d0ca6a2f3d0d7272e
parent95b4066c3ba8ca6aa9b133bf9c66cee6e7efe292 (diff)
Update explicit tags for proper Apple/Google format (#327)
-rw-r--r--REFERENCE.md2
-rw-r--r--exampleSite/content/episode/april.md2
-rw-r--r--exampleSite/content/episode/aug.md2
-rw-r--r--exampleSite/content/episode/dec.md2
-rw-r--r--layouts/section/episode.rss.xml4
5 files changed, 6 insertions, 6 deletions
diff --git a/REFERENCE.md b/REFERENCE.md
index 38d546f..dad77ef 100644
--- a/REFERENCE.md
+++ b/REFERENCE.md
@@ -306,7 +306,7 @@ Graphical user interface influencer value proposition startup hackathon iPad ana
| `episode` | No | The episode number. This is used in the Apple Podcasts tags of the feed. | "12" |
| `episode_image` | Yes | The square thumbnail to represent the episode. A default image is provided, and the archetype will pre-populate it. This image needs to be relative to your baseURL. | "img/episode/default.jpg" |
| `episode_banner` | No | The banner to represent the episode. This image needs to be relative to your baseURL. This image will be display at the top of the episode page, as well as the top of the home page for the most recent episode. Recommend that it is at least 1024 pixels wide. | "img/episode/default-banner.jpg" |
-| `explicit` | Yes | Whether or not the episode contains explicit content. Default value from the archetype is "no". Valid values are "yes", "no", or "clean" | "yes" |
+| `explicit` | Yes | Whether or not the episode contains explicit content. Default value from the archetype is "no". Valid values are "yes", "no", "true" or "false". | "yes" |
| `guests` | No | If your episode has guests, populate the `guests[]` array with a comma-separated list of their names. If there is only one guest, no comma is needed. | ["jdoe", "msmith", "gbluth"] or ["jsmith]" |
| `sponsors` | No | If your episode has sponsors, populate the `sponsors[]` array with a comma-separates list of their identifiers. If there is only one sponsor, no comma is needed. | ["bluthcompany", "sitwell"] or ["suddenvalley"] |
| `images` | No | The social sharing image used by Facebook, Twitter, etc. The archetype will populate this with a default sharing image. This image needs to be relative to your baseURL | ["img/episode/default-social.jpg"] |
diff --git a/exampleSite/content/episode/april.md b/exampleSite/content/episode/april.md
index 36aff7c..8581b3d 100644
--- a/exampleSite/content/episode/april.md
+++ b/exampleSite/content/episode/april.md
@@ -5,7 +5,7 @@ author = "Matt"
date = "2016-04-25T04:09:45-05:00"
episode = "7"
episode_image = "img/episode/april.jpg"
-explicit = "no"
+explicit = "false"
guests = ["jdoe", "jsmith", "ajohnston2"]
hosts = ["mstratton","bkromhout"]
images = ["http://www.google.comimg/episode/default-social.jpg"]
diff --git a/exampleSite/content/episode/aug.md b/exampleSite/content/episode/aug.md
index 5451ce1..93fce3f 100644
--- a/exampleSite/content/episode/aug.md
+++ b/exampleSite/content/episode/aug.md
@@ -6,7 +6,7 @@ date = "2016-08-25T04:09:58-05:00"
episode = "11"
episode_image = "img/episode/aug.jpg"
episode_banner = "img/episode/default-banner.jpg"
-explicit = "no"
+explicit = "true"
guests = ["mstratton", "ajohnston", "cadams"]
images = ["img/episode/default-social.jpg"]
news_keywords = []
diff --git a/exampleSite/content/episode/dec.md b/exampleSite/content/episode/dec.md
index 6aad3a2..1180db6 100644
--- a/exampleSite/content/episode/dec.md
+++ b/exampleSite/content/episode/dec.md
@@ -5,7 +5,7 @@ author = "Matt"
date = "2015-12-25T04:10:10-05:00"
episode = "3"
episode_image = "img/episode/dec.jpg"
-explicit = "no"
+explicit = "yes"
guests = ["chamilton", "jlong", "kdixon", "ccooper", "jsmith2"]
images = ["img/episode/default-social.jpg"]
news_keywords = []
diff --git a/layouts/section/episode.rss.xml b/layouts/section/episode.rss.xml
index 5354b7f..d9a6006 100644
--- a/layouts/section/episode.rss.xml
+++ b/layouts/section/episode.rss.xml
@@ -105,8 +105,8 @@
<enclosure url="{{ .Site.Params.media_prefix }}{{ .Params.podcast_file }}" {{with .Params.podcast_bytes}}length="{{ . }}"{{ end }} type="audio/mpeg" />
{{- with .Params.podcast_duration -}}<itunes:duration>{{ . }}</itunes:duration>{{- end -}}
{{- with .Params.explicit -}}
- <itunes:explicit>{{ . }}</itunes:explicit>
- <googleplay:explicit>{{ . }}</googleplay:explicit>
+ <itunes:explicit>{{ if (or (eq . "yes") (eq . "true")) }}true{{ else }}false{{ end }}</itunes:explicit>
+ <googleplay:explicit>{{ if (or (eq . "yes") (eq . "true")) }}yes{{ else }}no{{ end }}</googleplay:explicit>
{{- end -}}
</item>
{{- end -}}