Home of rolandsdev.blog content.
Install Hugo:
brew install hugo
NOTE For other platforms, see the installation guide.
These steps were only needed during the initial setup, so this section should be skipped.
- Init the site:
hugo new site --force .
- Add a theme (DoIt):
git submodule add https://github.com/HEIGE-PCloud/DoIt.git themes/DoIt
To serve content (w/ drafts) run:
hugo serve -D --disableFastRender
NOTE The --disableFastRender
flag is recommended by the DoIt authors.
NOTE To clean the cache, run:
rm -rf $TMPDIR/hugo_cache/rolandsdev.blog
To add a post, run:
hugo new posts/my-post.md
To build the static assets:
hugo -D
Deployment is done via Netlify. To find out more, checkout the hugo integration.
NOTE The integration was done via the netlify UI. For DNS, the only change required was the DNS namesevers (changed to netlify's NS).