Adding Posts
- Posted: 5/22/24
- Category: Maintenance Software
- Topics: Website Hugo
- Note: Maintenance pages are for internal use, but everyone is welcome to look around.
Procedure
- Launch a shell for the website’s development-home directory, and:
hugo new content/posts/YYYY/MM/TITLE-OF-POST/index.md
- If images will be included:
mkdir content/posts/YYYY/MM/TITLE-OF-POST/images/
- Put the post’s text in the
index.mdfile and images in the associated directory. - Test the result locally:
make server- Browse to
localhost:1313and check the new post.
- Update (local)
gitrepository:git add .git commit .git push
- Update (remote)
github.comrepository:make push
- Deploy the new post:
make deploy
- Final verification:
- Surf to the website and verify content.
