Dan Sheffner Tech Info

Made With Hugo

This site is made with a static site generator named hugo.

Basic commands:

installation

brew install hugo

at the time of writting this:

hugo version
Hugo Static Site Generator v0.71.1/extended darwin/amd64 BuildDate: unknown

start a new site:

hugo new site blog
cd blog

add a theme

git clone https://github.com/niklasbuschmann/contrast-hugo.git themes/contract-hugo

add theme to config.yaml

echo 'theme: "contrast-hugo"' >> config.yaml

add your first post:

hugo new posts/2020-05-27-my-first-post.md

edit the contents of the post:

vi content/posts/2020-05-27-my-first-post.md

serve the contents of the directory

hugo server -D

finally generate static content to public directory

hugo -D

required to get working on github.
Part of the config.yaml

baseURL: "https://thesheff17.github.io/"