Skip to content

rolandjitsu/rolandsdev.blog

Repository files navigation

rolandsdev.blog

Home of rolandsdev.blog content.

Netlify Status

Development

Prerequisites:

Install Hugo:

brew install hugo

NOTE For other platforms, see the installation guide.

Setup

These steps were only needed during the initial setup, so this section should be skipped.

  1. Init the site:
hugo new site --force .
  1. Add a theme (DoIt):
git submodule add https://github.com/HEIGE-PCloud/DoIt.git themes/DoIt

Serve/Run

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

Add Content

To add a post, run:

hugo new posts/my-post.md

Build

To build the static assets:

hugo -D

Deployment

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).