E D Skinner

Fiction, facts, and philosophy

Adding Posts


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.
  • Update (local) git repository:
    • git add .
    • git commit .
    • git push
  • Update (remote) github.com repository:
    • make push
  • Deploy the new post:
    • make deploy
  • Final verification:
    • Surf to the website and verify content.