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.
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.