~cbracken/blog

http://chris.bracken.jp
Switch back to Twitter link in header
Add thoughts on licences
Use Creative Commons Attribution 4.0 for content

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~cbracken/blog
read/write
git@git.sr.ht:~cbracken/blog

You can also use your local clone with git send-email.

#chris.bracken.jp

If you were looking for my actual blog, you'd find it at chris.bracken.jp, but if you're here, odds are you're looking for the source. You've come to the right place.

#Prerequisites

To build, you'll need hugo installed on your system.

#Obtaining the source

First, clone the repo:

git clone git@github.com:cbracken/blog

Next, initialise and fetch git submodules:

git submodule update --init

#Starting the dev server

Fire up hugo's dev server:

# For the production site:
hugo server

# To run with draft posts enabled:
hugo server -D

Follow the on-screen instructions to test the site out locally.

#Adding a new post

To create a new post:

hugo new post/yyyy-mm-dd-title-of-post.md

Edit content/post/yyyy-mm-dd-title-of-post.md in your favourite editor. When it's ready to post, remove the draft tag from the post header, commit the changes, and push.

#Building and deploying the site

The site is currently published to GitHub pages. That repo contains a CNAME file that tells GitHub the site should resolve to my personal domain.

To build and deploy the site, run:

./publish.sh