decaporg / one-click-hugo-cms

Hugo template with Decap CMS
https://master-template-one-click-hugo-cms.netlify.app
MIT License
499 stars 300 forks source link

make footer blurb about subscription editable in the cms #767

Closed tanyabouman closed 1 year ago

tanyabouman commented 1 year ago

- Summary

I was using this template and I needed parts of the footer to be editable in the CMS. I thought that might be something useful to contribute upstream, and maybe I can get some feedback on the design.

I added the footer fields to the home page and then used those variables in the footer partial, so that they are editable on the home page.

screenshot of editing footer fields

- Test plan

deploy

- Description for the changelog

Make subscription text in footer editable in CMS

- A picture of a cute animal (not mandatory but encouraged) duck falling asleep

tanyabouman commented 1 year ago

Thanks for the feedback! I put the footer fields into data/footer.json

screenshot of editing footer fields