Code behind my personal website
JavaScript HTML Shell Makefile CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
archetypes
bin
content
layouts
static
.gitignore
LICENSE
Makefile
README.md
config.toml

README.md

Code for Jonathan Zacsh's personal website: https://j.zac.sh

Development

This is a a repository of mostly text (written in asciidoc) - and a tiny bit of code - that is automatically turned into a directory of static HTML assets using:

  1. hugo binary to compile and manage content
  2. simple Make commands: build and deploy

Git Branches

  1. Source & content: src branch
  2. generated website: master branch

Commands:

Build static content of this repo into HTTP static files for serving:

make build

Advanced

To make changes and live reload in your browser:

hugo server

To see final (CDN-ready) contents of make build:

xdg-open tmp/  # inspect

python3 -m http.server  # and serve it, if you'd like

Setup

Just one-time, after first cloning this codebase:

go get github.com/spf13/hugo

Deploying to KeyCDN

History of deploys can be seen on the master branch history in github's "network pane"

To automatically generate (make build) and deploy (git {commit,push}) a new master branch to github:

npm run deploy

Optionally: KeyCDN's simple curl command to purge cache