I’m about to add schema.org support for Breadcrumbs to my site. Is there a way to package up something like to make it easy for other people to use? I’ve only found people sharing code snippets.
I’ve done schema.org support in Ruby, and so to me, it’s natural for this to exist as its own component, somehow.
I’m just not too familiar with the options we have for distributing reusable “components” for Hugo. I imagine that a reusable Breadcrumb function would accept a list of Breadcrumb maps, each with the required attributes.
I’m using generic terms here, because I don’t know if it’d be possible (or desirable) to code this in Go, Template, or something else.
That’s not bad. So if I understand this, I could publish a repo with a “theme” containing e.g. just layouts/partials. And then, people could use it by adding it to a theme list.