Log in Sign up

HTML in custom metadata?

I have a line of HTML I need to set dynamically it may have one or two links and different wording

Doing this fails, any suggestions?

In the markdown
page_footer: Back to <a href=/Weather>my local weather</a>.

{{entry.metadata.page_footer}}

Then displays as this plain text on the generated page
The HTML shows, not a link
Back to <a href=/Weather>my local weather</a>.


2 days ago, 1 replies   metadata   Edit question

Figured it out – using three curly brackets makes it display correctly:

{{{entry.metadata.page_footer}}}

This is a feature of Mustache, the template language used by Blot, which escapes variables by default.

Answered 2 days ago · Edit answer

Newsletter
Get updates on Blot’s latest features and changes. Delivered every three months.