Hugo Snippets
- May 2, 2022
Some notes about Hugo
Hugo
Page types
New post
From: https://discourse.gohugo.io/t/naming-content-files-index-md-vs-index-md-vs-foo-md/24043
No resources:
hugo new content/posts/snippet.md
With resources
hugo new content/posts/snippet/index.md
With sub-pages
hugo new content/posts/snippet/_index.md
Serve content
hugo serve --buildDrafts --buildFuture --disableFastRender
Commands
List all drafts
hugo list drafts
Publish to Netlify
rm -rf public && hugo --gc --minify -b https://studiofreya.org && netlify deploy --prod --dir public/
See Also
- Notes on Hugo
- Mermaid Test
- Is C++ your favorite programing language?
- Vcpkg and Cmake
- A Man With No Arms
Comments
Any comments? Create a new discussion on GitHub.There used to be an inline comment form here, but it was removed.