Articles

Hugo Tips

My most used search terms Front Matter. Tags and categories will not work unless you specify the following in config.toml [taxonomies]. tag = "tags" category = "categories" ``` ## Generate and publish! But there is an error in the generate... ``` % hugo WARN 2022/05/10 01:48:18 Module "ananke" is not compatible with this Hugo version; run "hugo mod graph" for more information. Start building sites ... Total in 87 ms Error: Error building site: render of "404" failed: execution of template failed: template: 404.

Introduction to Hugo

To set up a site using Hugo, we will install it and build an arbitrary site (HelloWorld) as a trial, referring to the official site. Quick start from Hugo installation to publishing articles. This is the official tutorial of the original site. https://gohugo.io/getting-started/quick-start/ Hugo Installation Hands-on Based on the official quick start, we will create a Hugo project named helloworld and publish an article with the theme ananke. # Install on MacOS You need to install Homebrew brew install hugo # Create helloworld project hugo new site helloworld cd helloworld # Reflect Theme ananke git init git submodule add https://github.