Maintenance: Adding Posts
- Posted: 5/22/24
- Category: Maintenance Software
- Topics: Website Hugo
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.md
file and images in the associated directory. - Test the result locally:
make server
- Browse to
localhost:1313
and check the new post.
- Deploy the new post:
make deploy
- Final verification:
- Surf to the website and verify content.
- If using
git
for version control, don’t forget:git add .
git commit .
git push