CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
356 stars 109 forks source link

How to change footer style #29

Closed CallMeL closed 1 year ago

CallMeL commented 1 year ago

Hi there, I directly fork this repository, and add submodule of hugo-theme-stack. I want to add some custom script in the footer. I changed the code in rootpath/themes/hugo-theme-stack/layouts/partials/footer/footer.html , it didn't work. I also copied the footer file to my rootpath/layout/layouts/partials/footer/footer.html, it didn't work neither. I want to know where to change the footer (or any other theme html) Thanks!

CaiJimmy commented 1 year ago

Hi there, I directly fork this repository, and add submodule of hugo-theme-stack.

That won't work because this starter template uses Hugo module to load the theme.

I also copied the footer file to my rootpath/layout/layouts/partials/footer/footer.html

That's the right way. But you have the wrong path: it should be rootpath/layouts/partials/footer/footer.html

CallMeL commented 1 year ago

Thanks! That perfectly solve my problem!