-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add <link rel="alternate"> to header #48
Comments
Would love to see this as well. Thanks |
Yes, I too was surprised that it wasn't inserted automatically. But it is easy enough, as Kevquirk said. If you edit |
I'm not so sure it's that trivial. Changing base.html.twig puts it on every page, right? But if you play by Google rules it should only be on one page - the main podcast page. This is what I picked up: Google is very strict on this, you can only have one link rel=”alternate” …> in any given page and they only want to see it on the main webpage for your podcast website, not all pages. My fix was an extra podcast template with {% extends 'partials/audio.html.twig' %} at the top instead of base.html.twig having the rel="alternate" in there then. |
My approach to the problem @rzw brought up was to amend the
Which then enabled me to have a
However, I think an alternative (or maybe additionally), there could be some
|
I added this to my blog theme. It seems to work nicely. I tried it with the for pay theme of typhoon theme. It worked. Thanks for the tip. |
I'm using this plugin for my site, but I was surprised to see that
<link rel="alternate">
was not added to the header automatically.Adding this to the header is trivial, but I would have expected to see this added automatically to aid in feed discovery.
Can a fix be added that automatically add the code below to the base.html.twig file?
The text was updated successfully, but these errors were encountered: