-
Notifications
You must be signed in to change notification settings - Fork 84
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
Identify canonical and alternate URLs #1033
Comments
<!-- Canonical and Alternate Links -->
{% comment %}
English URLs don't have a lang subdirectory since it's the default language.
See https://github.com/untra/polyglot
{% endcomment %}
<link rel="canonical" hreflang="en" href="{{ site.url }}{{ site.baseurl }}{{ page.url }}">
{% for lng in site.languages | sort %}
{% if lng != "en" %}
<link rel="alternate" hreflang="{{ lng }}" href="{{ site.url }}{{ site.baseurl }}/{{ lng }}{{ page.url }}">
{% endif %}
{% endfor %}
From the rendered output, it looks like |
I'm not seeing that when I run the site locally. I get this, which I think is correct?
Not sure I follow what you mean with the comment about IE9. Do you mean this is some issue with GH Pages rendering vs doing it locally? |
Which language was your current language? |
|
I'm using the Website.zip file unpacked.
|
That's strange - wonder why they're different? I suppose it makes sense that it doesn't use FQ URLs, but that doesn't account for the the canonical being the wrong one. |
Yep, just downloaded it again and looked directly in the file
|
How are you running the site? Are you generating it and then handing the output to Apache or are you running it with I'm wondering if Github is using a subtly different way of generating the output... |
On an Ubuntu VM, I've got ruby with various gems to run Jekyll, and with all the po4a stuff. I git clone/pull, switch to next-release, run the po4a script (which BTW I see throws a warning about an unexpected closing div), then run It's so I can test changes without having to make PR first. |
That will go away when #1025 gets merged. It's because po4a is a little too strict about tags. |
Closing with #1039 |
Originally posted by @pljones in #1026 (comment)
I don't think it's right...
https://github.com/jamulussoftware/jamuluswebsite/actions/runs/10696055730
http://jamuluswebsite.drealm.info/wiki/Installation-for-Linux
http://jamuluswebsite.drealm.info/sv-SE/wiki/Installation-for-Linux
ie9
, we get twohtml
tags, which cannot be right. Does IE 9 still exist? Is the XML comment actually parsed?canonical
isen
, okay but gives the wronghref
to get there.I should have spotted that earlier, sorry!
The text was updated successfully, but these errors were encountered: