lonelydev / swcraftsp-comments

A repository to track comments for SoftwareCraftsperson.com
GNU General Public License v3.0
0 stars 0 forks source link

posts/2024-04-01-hugo-modules/ #4

Open utterances-bot opened 4 months ago

utterances-bot commented 4 months ago

Using Hugo Modules for themes | Software Craftsperson

How to manage your Hugo themes using Hugo Modules

https://www.softwarecraftsperson.com/posts/2024-04-01-hugo-modules/

kevinduffey commented 4 months ago

I am struggling to get the latest Hugo to work with pretty much every theme I find online. Most are github submodules. Seems part of the issue is hugo.toml vs config.toml. Not sure though. I build the site, and often see some github error issue with regards to some asset like a font or something. I am trying to figure out how can I take a specific "old" (e.g. > 1 year) theme and convert it to a hugo module so I can use it in that manner.

b-dantas commented 3 months ago

@kevinduffey I suffered same thing here. Probably you try run a old Hugo version with more newest theme submodule version. Hugo community strongly recommend to update Hugo version, so I did creating a fresh Hugo, added new theme submodule and migrated markdown post files to there - https://www.brunodantas.com.br

kevinduffey commented 3 months ago

Nope.. latest version of Hugo. I got it kind of working.. but it doesn't seem like much in the way of tutorials especially for most themes. Most seem to be built for older versions I guess. But I found a theme that seems to work with the latest, still trying to figure out how to customize it.