blogging reborn
Table of Contents
again #
This seems to happen often. I go through a consistent burst of blogging, then I get distracted by work, and stop.
Well here is another attempt at blogging. This time with hugo.
So far I followed the quickstart and picked this fancy terminal theme.
I’m here because I’ve been converting my dev system to NixOS, and I’m learning a lot of new things. Might as well put them to paper.
configuration #
I’ve decided to put my blog in content/blog
directory, and to use the terminal theme.
1baseURL = 'http://www.jukie.net/~bart/'
2languageCode = 'en-us'
3title = "bartman's blog"
4theme = 'hugo-theme-re-terminal'
5
6[markup.goldmark.renderer]
7 unsafe = true
8
9[params]
10 contentTypeName = "blog"
11 themeColor = "orange"
12 showMenuItems = 10
13 showLanguageSelector = false
14 enableGitInfo = true # use git for last update
15 autoCover = true
16 fullWidthTheme = false
17 centerTheme = true
18 readingTime = true
archetypes #
The archetype
is a mechanism to template new content.
Running hugo new content blog/something-something
will create
content/blog/something-something/
directory with the contents
of archetype/blog/
directory, with some substitutions applied.
In archetype/blog/index.md
I have a standard “front-matter”…
1+++
2title = '{{ replace .File.ContentBaseName "-" " " | title }}'
3date = '{{ .Date }}'
4
5categories = ["blog"]
6author = "bartman"
7authorTwitter = "barttrojanowski"
8cover = ""
9tags = ["", ""]
10keywords = ["", ""]
11description = ""
12showFullContent = false
13readingTime = true
14hideComments = false
15
16draft = true
17+++
18
19## title
20
21<!--more-->