A Hugo theme inspired by Luke Smith's lugo theme, but tweaked to my liking.
Go to file
Matthew Barnes 4c8753c682
Center images in figures
2024-03-22 23:48:59 +00:00
archetypes Add description fields to front matter archetypes 2022-12-19 18:43:13 +00:00
layouts Add music layout 2022-12-19 00:22:04 +00:00
static Center images in figures 2024-03-22 23:48:59 +00:00
.gitattributes Add git lfs attributes 2022-12-19 00:13:56 +00:00
.gitignore Add hugo executables to gitignore 2022-12-19 00:13:56 +00:00
LICENSE Add license 2022-12-19 00:13:56 +00:00
README.md Add demo link to readme 2022-12-19 01:19:51 +00:00
config.toml Init commit 2022-12-18 23:53:51 +00:00

README.md

License: MIT

Matt's Hugo Theme

A Hugo theme inspired by Luke Smith's lugo theme, but tweaked to my liking.

It can double up as a blog, an art gallery, or a music catalogue.

A demo of this theme can be found here.

Getting Started

Create a new site, and add this as your Hugo theme:

hugo new site new-site
cd new-site
git submodule add https://git.matt-barnes.co.uk/mb2g17/matts-hugo-theme.git themes/matts-hugo-theme
echo "theme = 'matts-hugo-theme'" >> config.toml

Creating a blog

If you want to make a blog, you'll want the default archetype.

It should use it by default when you run hugo new, but if you want to make changes, run:

cp themes/matts-hugo-theme/archetypes/default.md archetypes/

If you want to make an art gallery, you'll want the art-piece archetype:

cp themes/matts-hugo-theme/archetypes/art-piece.md archetypes/default.md

Be sure to put your art files in the assets directory, as Hugo needs to process them to create thumbnails, and use the asset shortcode.

If you're adding an image that doesn't have to be processed (it won't be the thumbnail of your post), you can add it to the content or static directories, and use the img shortcode.

Currently, this theme only supports .png files.

Creating a music catalogue

If you want to make a music catalogue, you'll want the music-track archetype:

cp themes/matts-hugo-theme/archetypes/music-track.md archetypes/default.md

Put your audio files in the static directory and use the audio shortcode.

Currently, this theme supports mp3 and ogg audio files.