Check Hugo quickstart.
hugo new site mysite --forceInstall PaperMod theme (Method 2: submodule):
# this generate a .gitmodules file
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
# once you have a valid .gitmodules file, just run
git submodule update --init --recursiveLoad submodules after cloning the repo:
git submodule update --initUpdate the theme:
git submodule update --remote --mergehugo new posts/my-first-post.mdEverything is a draft by default, keep in mind when serving the site.
You can change this behaviour editing ./archetypes/default.md.
Images go to the ./static folder.
You can reference them from your markdown (no need of "/static/" prefix):
hugo serverInclude drafts with
hugo server --buildDraftsThe command hugo-lunr knows where to check for content (./content) and where
to create the index (./public/lunr.json)
This example is clearer (and shorter) than the official documentation