Skip to content

Commit

Permalink
Use language config.toml value in RSS (#195)
Browse files Browse the repository at this point in the history
Populate the podcast RSS with the .Site.Params.feed.language
value from the config.toml file, otherwise use the
.Site.LanguageCode value.

Closes #177

Signed-off-by: Rajesh Duggal <[email protected]>

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/mattstratton/castanet/195)
<!-- Reviewable:end -->
  • Loading branch information
rajeshduggal authored and mattstratton committed Aug 9, 2018
1 parent d5ac2f2 commit b986bc7
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
2 changes: 1 addition & 1 deletion layouts/section/episode.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<lastBuildDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Date }}</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<language>en-us</language>
<language>{{ .Site.Params.feed.language | default .Site.LanguageCode }}</language>
<copyright>{{ .Site.Params.feed.copyright }}</copyright>
{{ with .Site.Params.feed.itunes_subtitle }}<itunes:subtitle>{{ . }}</itunes:subtitle>{{ end }}
<itunes:author>{{ .Site.Params.feed.itunes_author }}</itunes:author>
Expand Down
1 change: 1 addition & 0 deletions test/blue-grid-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/blue-row-jumbo-false-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/blue-row-jumbo-true-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/blue-row-no-jumbo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/grey-grid-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/grey-row-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/grey-row-jumbo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/orange-grid-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/orange-row-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down
1 change: 1 addition & 0 deletions test/orange-row-jumbo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arr
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"
language = "en-us"

[params.social]
github = "arresteddevops"
Expand Down

0 comments on commit b986bc7

Please sign in to comment.