Hi,
I converted my Google sites personal blog website to Hugo a couple of years ago and have a question. I’ve added a nav bar to my content pages that has links to next and previous pages (based on creation date) as well as to an image gallery if one is defined in the front matter (Params.album). I have this same snippet of code in 2 places, at the top and bottom of each post. I’d like to have this snippet exist only in one place and reference it from the places I use it so that I can maintain it in one location rather than needing to edit 2 duplicate locations every time I want to change it.
What Hugo feature would best support this? If it matters I am using a mildly modified Ananke theme and my repo is located here: GitHub - RoninTech/CarryOnRoundTheWorld: Paul and Helen's Website
The identical code blocks I am talking about are here (in the same file):
and
Here is an example page on the live site showing these nav sections at the top and bottom of the page:
Thanks for the help and for an amazing tool in Hugo!