Hugo allows you to add 'partials' into your Markdown, which you can configure to generate custom HTML when you put content between double brackets and carrots.
For example, on my website, the following text generates an embed link
{{< embed
url="https://abeh.org/2026-06-26-protest-photography/"
image="https://abeh.org/media/Protest%20Photos/DSC03647.jpg"
title="Protest Photography"
description="Over the past few months, I’ve started to take a lot of protest photography."
>}}
But, if I put that into PagesCMS and hit save, the next time I go to edit it, PagesCMS formats it as
{{< embed
url="[https://abeh.org/2026-06-26-protest-photography/](https://abeh.org/2026-06-26-protest-photography/)"
image="[https://abeh.org/media/Protest%20Photos/DSC03647.jpg](https://abeh.org/media/Protest%20Photos/DSC03647.jpg)"
title="Protest Photography"
description="Over the past few months, I’ve started to take a lot of protest photography."
> }}
This, of course, breaks both the links breaks both the links and the partial overall due to it adding the extra space between > and }}. I can fix this manually by going into the source editor, but I have to remember to do it every time, and the next time I open the page, it will be undone again. Either an option to essentially treat everything within {{< as a code block or, even better, a configuration method to add custom elements like this (I don't believe this is possible, but I may be missing something in the docs. A custom field would not be helpful here because it needs to exist within the body.) would fix the problem
Thank you so much for making this great tool.
Hugo allows you to add 'partials' into your Markdown, which you can configure to generate custom HTML when you put content between double brackets and carrots.
For example, on my website, the following text generates an embed link
But, if I put that into PagesCMS and hit save, the next time I go to edit it, PagesCMS formats it as
This, of course, breaks both the links breaks both the links and the partial overall due to it adding the extra space between
>and}}. I can fix this manually by going into the source editor, but I have to remember to do it every time, and the next time I open the page, it will be undone again. Either an option to essentially treat everything within{{<as a code block or, even better, a configuration method to add custom elements like this (I don't believe this is possible, but I may be missing something in the docs. A custom field would not be helpful here because it needs to exist within the body.) would fix the problemThank you so much for making this great tool.