If you’re using the Hugo framework to deploy your site on GitHub Pages and you’re experiencing issues with missing styles or incorrect layout after setting up a subdomain through Cloudflare, there are a few things to check and configure. Here’s a detailed guide to ensure that everything works smoothly.
1. Check the baseURL
in Hugo’s Configuration
The baseURL
setting in Hugo’s config.toml
(or config.yaml
or config.json
, depending on your setup) is critical for making sure your site works correctly with a custom subdomain or domain.