A simple Hugo theme to scratch my own itch of having a barebones frontend for my blog. While it’s useable, it’s missing a lot of features (pagination, tooltips, thumbnails, proper configuration, etc) to be considered “production-ready”.
Heavily inspired from Drew DeVault’s blog and theme.
- Setting
disablereferrer
totrue
adds ameta
tag to instruct the browser to not include the referer header in requests. - Setting
language
to a string sets the language in <html lang=”“> for every page. Default value isen
. avataralt
sets the alt text for the avatar image on the sidebar.- Setting
enableComments
totrue
adds an<a href>
at the end of every post which contains acomments
param. Thecomments
parameter must be a link. The description of the hyperlink by default is “Fediverse”, but can be changed by setting thecomments_description
parameter. - Setting
source
will add a link at the bottom of each post that points to the latest commit that edited said post.Source
expects a dictionary with two pairs, one calledurl
and the otherdescritpion
.url
should be set to the url of the code forge meant of individual commits, for example “https://github.com/username/repo/commit/”.description
is the text that will be used to construct the link description. Note:enableGitInfo
must be enabled in the main site settings of Hugo for this to work.