LukeSmithxyz / lugo

Luke's Hugo Theme
172 stars 62 forks source link

Why that installation method? #19

Open BravishkaSkytano opened 1 year ago

BravishkaSkytano commented 1 year ago

This isn't an "issue" just a few questions by a curious developer.

I just started using Hugo for simple web applications like publishing my notes online and I feel like there's sooooo much to learn in Hugo (which is weird because it is just another SSG...).

I found your video from 8 months ago going over Hugo (thank you) and I have a question about this theme. I noticed you said to install it by cloning this repo to your themes folder, my question is why? This is not a method mentioned by the documentation. Most people are saying to either use git submodules or the new Hugo modules, why do you suggest a different method?

Again, I'm just curious as to why you chose to do that method instead of the others. Thanks in advance!

And I will be checking out your YouTube channel a lot more, finding fellow Linux users and Christians is always fun. I also like the very strong stance you have on free software, go you.

mutageneral commented 1 year ago

I tried to use it as a Hugo module and it did not work:

go: no module dependencies to download
go: github.com/LukeSmithxyz/lugo: invalid github.com import path "github.com/LukeSmithxyz"
Error: failed to get ["-d" "-u" "github.com/LukeSmithxyz/lugo"]: failed to execute 'go [get -d -u github.com/LukeSmithxyz/lugo]': failed to execute binary "go" with args [get -d -u github.com/LukeSmithxyz/lugo]: go: github.com/LukeSmithxyz/lugo: invalid github.com import path "github.com/LukeSmithxyz"
 *errors.errorString

this is my go.mod:

module github.com/LukeSmithxyz/lugo

go 1.20

this is what I have in my config.toml

[module]
[[module.imports]]
  path = 'github.com/LukeSmithxyz/lugo'

I followed the documentation.

BravishkaSkytano commented 1 year ago

From my understanding, not all themes can be used as Hugo Modules; the theme designer has to set up their theme as a Hugo Module before you can use it as one. I'm not sure of the specifics but that is what I've seen from my research.