This example explains how to add a new post, assuming you are in the base directory for your hugo source files.
- Initialize:
hugo new --kind post post/hello-world - Edit
content/post/hello-world/index.mdafter the+++...+++or---...---front matter - Check article for typos with
hugo server(use-Dif draft) - When finalized, run
./deployship the changes to the production server
To edit an article, repeat steps 2-4 above while hugo server is running. Best to use git to track changes.
Say you want to remove the hello-world.md article:
rm -r content/post/hello-world/./deploy
git clone git@github.com:brege/brege.org.gitcd brege.org
mkdir -p themes/hugo-papermodgit clone git@github.com:adityatelange/hugo-PaperMod.git themes/hugo-papermod/- check:
hugo server