loup-brun / hugo-cite

📝 Easily manage your bibliography and in-text citations with Hugo, the popular static-site generator.
https://labs.loupbrun.ca/hugo-cite/
Do What The F*ck You Want To Public License
106 stars 27 forks source link

Make it a Hugo module #17

Open DirtyF opened 4 years ago

DirtyF commented 4 years ago

People should be able to use it easily. This would ease the install phase.

See https://gohugo.io/hugo-modules/

loup-brun commented 4 years ago

I looked into Hugo modules before, but I believe those do not serve the same technical purpose.

You would actually install hugo-cite just as you would install a theme.

The only difference is that you would then specify hugo-cite as an “additional theme” (see 2. Configugure).

I can’t think of a more simple installation than installing a theme – let me know if the README instructions are not clear enough.

antoinentl commented 4 years ago

@DirtyF It's another choice, not sure one is better than the other. I think "This could ease the install phase" is more accurate :relieved:

DirtyF commented 4 years ago

@antoinentl I'm not sure @bep would agree 😉

loup-brun commented 3 years ago

Inspiration on how to setup the module (with versioning, cf. #14 for versioning): https://github.com/bep/my-modular-site

Configure a module (Hugo documentation): https://gohugo.io/hugo-modules/configuration/

DirtyF commented 3 years ago

The New Dynamic, the most famous Hugo Shop out there open sourced a lot of modules if you need concrete examples: https://github.com/theNewDynamic?q=hugo-module

bep commented 3 years ago

@antoinentl I'm not sure @bep would agree 😉

I don't. Even for the simplest setup (as in: 1 theme) there are plenty of benefits.

HughP commented 3 years ago

As someone who has implemented this theme twice, I appreciate its current structure (as a theme). However, my current websites are not set up as hugo modules. BTW: it is difficult to tell who is advocating for the conversion to modules because of the short comments. However, I trust that you all understand each other!