I have the same content on two websites. I would like to use the frontmatter within Hugo to point to the original source of the content (on my other website).
I’ve tried Aliases but it’s informing me (and rightly so) only relative aliases are supported.
Front matter is whatever you want, aside from predefined variables, right? I’d probably name it canonicalurl or something. Then, wherever you load the metadata in the head element of your pages from your templates, use with to include the link element.
Hmmm, I’m not familiar with your way of asking questions. You said:
Canonicalisation - How do I tell Google the content is sourced elsewhere?
Any idea how this can be done?
It sounded like you were asking about the concept. Correct me if I misunderstand again, but I think you are asking about adding the canonical link element to a page based on front matter. The above instructions, along with the linked docs, will provide that. If it is something else, I’ll let another person jump in.