Running Blog With Hugo

Introduction I wanted to migrate my blog from Wordpress to statically generated HTML blog. But on the other hand I wanted to keep history of all my changes in blog. Finally I decided to go with Git repo for files and Hugo as file generator. To automate generation and deployment of site I’m using GitLab and its CI. Overview Here is how looks like my setup for blog: Files are hosted on personal VM Blog content is hosted in a private repo at VM with GitLab DNS for my zone is hosted in Cloudflare Theme for site is included as git submodule into repo After editing something or adding content I commit and push changes to repository When content is pushed to GitLab instance CI runs pipeline to build site GitLab CI contains two steps: Building and generation site artifact Pushing site artifact to web server As example I used this article....

March 24, 2018 · 2 min · Dmytro Prokhorenkov