Hugo 初體驗
Hugo 是由 Go 所寫的 SSG,也是目前 JAMstack 下最快的 SSG。
Hugo 是由 Go 所寫的 SSG,也是目前 JAMstack 下最快的 SSG。
Install Doks theme with the default configuration.
Install Congo theme with the default configuration and the example site. Congo theme is built with TailwindCSS 3.2.
Install Book theme with the default configuration and the example site.
Install Geekdoc theme with the default configuration.
Not only using Hugo’s variables with Go template language, but also Alpine’s directive.
The Go Templates make heavy use of range to iterate over a Map, Array, or Slice.
We can use range to iterate over an array to render HTML.
For site-level custom data, we can store them on the params section of config.json.
We can define site variables in config.json and access them by Go template language.