You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to set up a custom domain for a personal GitHub page. It works smoothly but I noticed some SEO problems because of the duplicate content at username.github.io and customdomain.com
The internet suggests the following solution:
add to the head
I considered modifying just my fork of the theme, but I am now wondering if there are other places where
the custom domain should be added.
It is also unclear why there are two different parameters for the site URL: baseURL in hugo.yaml and openGraph.url.
Is there any case where they should differ from each other?
Since this may be a common situation, adding an option to the theme to support custom domains may be worth adding.
The text was updated successfully, but these errors were encountered:
Hi @maiani, sorry for the late response.
I also have a custom domain, and I don't have any problems. I just added my custom domain into hugo.yaml, and followed the guide on github pages.
I have tried to set up a custom domain for a personal GitHub page. It works smoothly but I noticed some SEO problems because of the duplicate content at username.github.io and customdomain.com
The internet suggests the following solution:
add to the head
I considered modifying just my fork of the theme, but I am now wondering if there are other places where
the custom domain should be added.
It is also unclear why there are two different parameters for the site URL: baseURL in hugo.yaml and openGraph.url.
Is there any case where they should differ from each other?
Since this may be a common situation, adding an option to the theme to support custom domains may be worth adding.
The text was updated successfully, but these errors were encountered: