Setup your Static Blog using Hugo, Firebase, & Google Domains

March 8, 2017

Hugo

# INSTALL
apt-get install hugo && pip install Pygments

# NEW SITE
hugo init chrisprescott.net
cd chrisprescott.net

# ADD THEME
mkdir themes
cd themes
git clone https://github.com/digitalcraftsman/hugo-cactus-theme.git

# NEW PAGE
hugo new post/my-new-blog-post.md

# RUN
hugo server --buildDrafts --theme=hugo-cactus-theme

# UNDRAFT
hugo undraft post/my-new-blog-post.md

# DEPLOY
hugo --theme=hugo-cactus-theme

Deploy via Firebase

# INSTALL
apt-get install npm
npm install firebase

# CONFIG
cd chrisprescott.net
firebase login
firebase init

# DEPLOY
firebase deploy

Google Domains

https://console.firebase.google.com/ -> Your site -> “Hosting” -> “Connect Domain”

alt text

https://domains.google.com -> DNS -> “Custom resource records”

alt text