It started!
I had some issues but finally my hogo generated blog is working now.
Prepare
- get familiar with command line and git a bit
- markdown and yaml/toml syntax knowledge will be useful
- install git + Github Desktop and hugo on your desktop
Start
- Create a GitHub repository add
readme.md
and clone it to your desktop - Create a page with hugo in the folder of the cloned repo
hugo new site
git clone
or add as asubmodule
a selected theme- Create
config.yaml
or.toml
file and some post/page with markdown - test with
hugo server
on your desktop - if you like what you see skip the next step - customize your settings and test again
- make your site alive:
hugo
Publish
- push your changes to your github repository
- create an other repository
your.username.github.io
and enable, set up github pages environment. Dont forget to set up the site’s address in your config file. - add your hugo page’s public folder as a submodule. Hugo generates the site’s element from yor pages - as it is set up in config - to your public folder. Here I had some problems. The submodule was created, and the first time it worked fine. I realized that my theme is not supported on github pages. After I made som e changes I wasn’t able to push them to my repo, or deploying the submodule didn’t work. But I am a starter, maybe I did something wrong.
- your site is published on your github page adress. Dont forget to set up this address in your config file.
My solution to publish
- push your changes to your github repository
- register to Netlify.
- connect your Github repository with hugo source files. You need to add netlify.toml with some settings.
- set up a page with your repository and publish the public folder of it.
- set up automatic build and deploy. Any time you make some changes on your site, will be published automatically.