How to Update This Website

Thu, Jan 21, 2021 2-minute read

Installation

On Fedora

sudo dnf install hugo

Git

git clone https://github.com/danielfcollier/danielfcollier.github.io.git

Update submodules

git submodule init
git submodule update

Updating

Update theme installation

git submodule update --remote --merge

Adding a new post

hugo new post/my-new-post.md

List drafts

hugo list drafts

Build

hugo -D

Start server

hugo server -D

Deploy

On pushing to the main branch a GitHub action will take place to deploy to GitHub Pages.

About Hugo

Written in Go, Hugo is an open source static site generator available under the Apache Licence 2.0. Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.

Hugo makes use of a variety of open source projects including:

Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.

Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.

Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.

Learn more and contribute on GitHub.

References