Creating This Blog

Blog Framework

I was googling for a simple blog framework to create a professional looking website with less effort as possible.

I found Hugo (https://gohugo.io/)

Here is the source: https://github.com/gohugoio/hugo

There are tons of very nice looking themes: https://themes.gohugo.io/

I decided to go for Hermit: https://themes.gohugo.io/hermit/

Here are the installation steps:

  1. install Hugo

  2. install Hermit

  3. edit Hermit configuration file to your needs

  4. create first blog post (this one)

  5. deploy it –> see next post

The Details

Installing Hugo on linux

sudo apt get install golang git
git clone https://github.com/gohugoio/hugo.git
cd hugo
go install

Installing the theme

mkdir yourwebsite
cd yourwebsite
git clone https://github.com/Track3/hermit.git themes/hermit
cp -r themes/hermit/exampleSite/* .

Edit the content

edit ‘config.toml’

create new postings

hugo new posts/new-posting.md

Edit this file. Delete old postings. Useful cheat sheet when using emojis: https://www.webfx.com/tools/emoji-cheat-sheet/

hugo --cleanDestinationDir
hugo server

Review your creation

Open in your browser http://localhost:1313

If your new post is not there… you forgot to set ‘draft: false’ in the meta data at top part of this file.

Done. So simple.


HP

170 Words

2021-02-06 21:37 +0100