Hugo Stuff
Install
Make sure you install add-ons
Create a new site with yaml format
Modified from here
-
Create directory Structure
bash hugo new site --format=yaml foldername cd foldername -
Initialize
gitrepository and add themeMight I suggest using this forked version of the "liva" theme? It has some nice enhancements
```bash git init git submodule add https://github.com/danb0b/external_liva-hugo.git themes/liva-hugo
or
git submodule add https://github.com/danb0b/website_hugo_framework.git themes/website_hugo_framework
or
git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt ```
-
Add theme to
config.yaml```bash echo theme: \"liva-hugo\" >> config.yaml
or
echo theme: \"website_hugo_framework\" >> config.yaml ```
-
Customize
config.yaml -
Run server for testing
Production:
bash hugo serverWith Drafts:
bash hugo server -D
1 Build Pages
Production:
```bash
hugo
```
With drafts:
```bash
hugo -D
```
External Links
General
- https://gohugo.io/getting-started/quick-start/
- Page Variables
- The Page Variable
- https://cloudcannon.com/blog/the-ultimate-guide-to-hugo-sections/
Essential Add-ons
Search
- https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae
- https://ben.land/post/2021/12/02/hugo-search-functionality/
JSON
Using with Github Actions
Themes and Examples
Documentation themes
Ones I didn't like as much
- https://github.com/NotWoods/hugo-bootstrap-5
- Doks (relies on npm and nodejs, no deal)
- Whisper
- HBS
Good one: