zerostaticthemes / hugo-hero-theme

A multi-page Hugo theme with fullscreen hero images and fullwidth sections.
https://hugo-hero.netlify.com
MIT License
355 stars 252 forks source link

Allow custom CSS and JS injection #38

Closed RoneoOrg closed 2 years ago

RoneoOrg commented 3 years ago
RoneoOrg commented 3 years ago

Seems to solve https://github.com/zerostaticthemes/hugo-hero-theme/issues/35 too

JugglerX commented 2 years ago

@RoneoOrg Thank you for the PR.

You can already edit the scripts.js and any of the scss files. What's the use case/added value this feature provides?

RoneoOrg commented 2 years ago

Hi @JugglerX, thanks for having a look!

The main objective here is to give the possibility to set some custom bits of CSS and JS while avoiding git conflicts when the theme is updated:

Without this trick, there are only two possibilities AFAIK:

I may be missing something, though. (And I hope I've been intelligible, I'm not a native english-speaker, sorry!)

Thanks for sharing this theme !