Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed should pull language code from config file #177

Closed
mattstratton opened this issue Mar 8, 2018 · 1 comment
Closed

Feed should pull language code from config file #177

mattstratton opened this issue Mar 8, 2018 · 1 comment

Comments

@mattstratton
Copy link
Owner

If it's not set, default to us-en

rajeshduggal added a commit to rajeshduggal/castanet that referenced this issue Aug 9, 2018
Populate the podcast RSS with the .Site.Params.feed.language
value from the config.toml file, otherwise use the
.Site.LanguageCode value.

Closes mattstratton#177

Signed-off-by: Rajesh Duggal <[email protected]>
rajeshduggal added a commit to rajeshduggal/castanet that referenced this issue Aug 9, 2018
Populate the podcast RSS with the .Site.Params.feed.language
value from the config.toml file, otherwise use the
.Site.LanguageCode value.

Closes mattstratton#177

Signed-off-by: Rajesh Duggal <[email protected]>
@rajeshduggal
Copy link
Contributor

rajeshduggal commented Aug 9, 2018

@mattstratton instead of making it default to "us-en", I coded it to default to the LanguageCode variable. I think that might be more correct for hugo based on this documentation...https://gohugo.io/variables/site/

Many, but not all, site-wide variables are defined in your site's configuration. However, Hugo provides a number of built-in variables for convenient access to global values in your templates.

mattstratton pushed a commit that referenced this issue Aug 9, 2018
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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants