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

Workaround for rel="alternate" due to google podcasts rule #47

Closed
diogodh opened this issue Jan 7, 2020 · 9 comments
Closed

Workaround for rel="alternate" due to google podcasts rule #47

diogodh opened this issue Jan 7, 2020 · 9 comments

Comments

@diogodh
Copy link

diogodh commented Jan 7, 2020

I'm using your theme on my podcast home page. By default, aether creates the following index.html code
"<link rel="alternate" type="application/rss+xml" href="/index.xml" title="Title" />

However, google has a rule that to a podcast be indexed it can only have one instance of <link rel="alternate" and needs to the the one from google
<link type="application/rss+xml" rel="alternate" title="Title" href="feed.xml"/>

My question is how can i hardcode the index.html or even your theme to bypass this situation.

@josephhutch
Copy link
Owner

By default Hugo includes RSS as a default output format. To remove the the RSS link and to include your podcast's feed.xml see this docs section. That whole page on custom output formats should be helpful.

@josephhutch
Copy link
Owner

@diogodh were you able to solve this issue?

@diogodh
Copy link
Author

diogodh commented Jul 30, 2020 via email

@josephhutch
Copy link
Owner

Add this to your config.toml file. The rss link tag will be replaced with your podcast's feed tag. Notice that you get a warning when building your site with these config changes. You can add a template for your new PodcastFeed output format which will automatically generate the feed.xml file and remove the warning.

[outputFormats]
  [outputFormats.PodcastFeed]
    baseName = "feed"
    isPlainText = true
    mediaType = "application/rss+xml"

[outputs]
  home = ["HTML", "PodcastFeed"]

I can work on adding a podcast template to the theme but I would like some info before I get started. Where do you store your podcast files? Posting an example of your feed.xml file would be very helpful.

@diogodh
Copy link
Author

diogodh commented Aug 3, 2020 via email

@josephhutch
Copy link
Owner

@diogodh any luck with the output formats fix? I haven't had a chance to implement a PodcastFeed output format but it's on my list.

@diogodh
Copy link
Author

diogodh commented Oct 18, 2020 via email

@josephhutch
Copy link
Owner

Okay, I am going to close this issue as I have tested the solution above as a fix for the re="alternate" google podcast rule.

@diogodh
Copy link
Author

diogodh commented Oct 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants