DEV Community

loading...

How to update my blog made with Hugo

Koray Biçer
Just a regular guy who likes good black tea while living in command line.
・1 min read

Hi folks!

The question is, what is the most convenient way to update my diary made by Hugo static website creator?

This is what i did:

  • I followed the steps, created a blog, copied all necessary files from themes in to my blog's root folder.
  • I created new pages with command hugo new posts/sample.md
  • When i finish editing the pages, i issue command hugo and create the public directory and uploaded to github.

Am i doing everything correctly? Should i issue command hugo every time i create a new web page?

Discussion (3)

Collapse
keremkayabay profile image
keremkayabay

Hello Koray. I am using this script to update my blog hosted on GitHub Pages.

Collapse
koraylinux profile image
Koray Biçer Author

Thanks for the info :)

Collapse
wulymammoth profile image
David

Yeah, that sounds about right. The docs have a script that you can write to make it simpler each time: gohugo.io/hosting-and-deployment/h...