Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why that installation method? #19

Open
BravishkaSkytano opened this issue Mar 28, 2023 · 2 comments
Open

Why that installation method? #19

BravishkaSkytano opened this issue Mar 28, 2023 · 2 comments

Comments

@BravishkaSkytano
Copy link

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
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants