Closed rbatista191 closed 5 months ago
I think you had it correct, I made some changes whilst understanding but I think it was correct already:
However I noted that if you check tramitit.com without pointing to a post it doesn't pass. I'll check if we can add something there
Edit: It appears that https://tramitit.com doesnt pass but https://tramitit.com/en does, I don't know if that is correct or not?
It also complains about duplicate references and such, I don't fully understand what these tags are for how they should be set so let me have a look
Edit: It appears that https://tramitit.com doesnt pass but https://tramitit.com/en does, I don't know if that is correct or not?
It also complains about duplicate references and such, I don't fully understand what these tags are for how they should be set so let me have a look
@awennersteen the problem is the duplicate references indeed. I have an ongoing thread with Hugo's support, I also need to test these tags to see what matches what AHREF wants. But for the time being, I need to be able to remove the default ones.
See if my ticket to Hugo's support is clear, we can also have a call.
gotcha, now I understand the problem. Is the last reply by the guy the answer, looks like it to me, I'll try
gotcha, now I understand the problem. Is the last reply by the guy the answer, looks like it to me, I'll try
Doesn't look like it, it still generates several rel=alternate
:
Yeah, so that fixed the case for english.
I still don't understand what's wrong with the alternate ones tbh
Edit: I now understand, I think I know how to debug
The same piece of code is in a base hugo module we use
Issues fixed using the ongoing thread information. Thanks @awennersteen !
Long thread, let me see if I can summarize it:
rel=alternate
tags are not placed correctlypartials/head.html
the oldrel=alternate
are still showing up (probably triggered by a partial that I cannot access):@awennersteen can you help me on this?
Here is a good website to test the schema: https://technicalseo.com/tools/hreflang/
This is the official guide from Hugo for localization: https://gohugo.io/content-management/multilingual/