Hugo on Github Pages Returns 404

Although followed the official documentation and got it built correctly, the GitHub page still returns 404. After some investigation with Branches and Pages settings of my GitHub repository, I realize that built means a different thing for GitHub. Since the pages are built by Hugo, GitHub doesn’t build the page anymore (unlike the Jekyll I used before). So the source branch shouldn’t be master, but gh-pages, after switching Source to the correct branch, it works now. ...

November 22, 2021

Hugo Extended Mode on Github Pages

When I was trying to push this repository to GitHub, by following the Quick Start and Host on GitHub, GitHub actions failed to build with this error message: Error: Error building site: TOCSS: failed to transform "ananke/css/main.css" (text/css). Check your Hugo installation; you need the extended version to build SCSS/SASS.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information So the answer is simple, comment the #extended: true in .github/workflows/gh-pages.yml, the extended version of Hugo will support building scss/sass. The official documentation didn’t mention any on this configuration, so I guess this is a too simple question to mention on the document, just a commented line of correct configuration should be good enough to let people know this. ...

November 22, 2021