Implementing Structured Data (Schema) Carousel for Category pages in Hugo

For everybody with Recipe websites based on Hugo (like one of mine) there is a simple method to go a little step forward by implementing Carousel to category pages.

<script type="application/ld+json">
    {
      "@context":"https://schema.org",
      "@type":"ItemList",
      "itemListElement":[
      {{ range $counter, $_ := where .Paginator.Pages "Params.hidden" "ne" true }}{{ if $counter }},{{ end }}
        {
          "@type":"ListItem",
          "position": {{ add $counter 1 }},
          "url": {{ .Permalink }}
        }
	    {{ end }}
      ]
    }
</script>

More here:

Once again Thank you for @jmooring for, as always, irreplaceable support.

3 Likes