Hello! I would like to display content ID in the footer of the website with fall back to site content ID if content page does not have content ID.
From Param documentation I see it should do exactly what I intend to do but it does not seem to work and instead, for some reason displays the content ID from one page params on all pages.
In hugo.yaml I have:
params:
contentId: 'abc'
In content page params I have:
params:
contentId: 'xyz'
In the footer I have it as shown in the docs.
{{ .Param "contentId" }}
What happens is that xyz in displayed in the footer of all the pages when I build the site with hugo --cleanDestinationDir. Does anybody have any thoughts?
Thank you so much, @irkode! I could not have figured it out on my own Quickly tested and seems to be working as intended. Even found an example of this exact change (even though in this case they were adding this the cache not removing it).