$ sudo snap install hugo
$ git clone --recursive git@github.com:YosysHQ-GmbH/blog_yosyshq.git
$ cd blog_yosyshq
$ hugo server
Now open the localhost URL that hugo server
printed to the console in your browser.
Whenever you safe a change to a file, the perview in your browser is updated in real time.
Simply build the static files and placing them in public/
is easy:
$ hugo -e production
However, if you also want to push your changes it's recommended to use
the build.sh
script instead (make sure public/
doesn't exist yet when
running build.sh
for the first time):
$ bash build.sh
Finally, pushing your changes to the life website:
$ bash publish.sh