Getting raw content


#1

In a template, it is obviously possible to get the content of a page in HTML with {{ page.content }}. But in my RSS feed, I would like to have the raw markdown content, as it was written.

Is it somehow possible?


#2

Currently no, that would pretty much double the amount of serialization we have to do for the template engine and would make Zola almost twice slower and use more memory :confused:


#3

If you’re fine with using a forked version, implemented here. I’d really like to upstream this; in my case, I need it for doing slides with reveal.js.

It’d also work for me to have a front-matter attribute, e.g. content_is_raw = true, that puts page.raw_content into SerializingPage instead; would a PR to do that be accepted?


#4

Someone is currently having a look at changing the serialization in Tera: https://github.com/Keats/tera/issues/364

If this pans out, then we won’t need special options!


#5

Sweet, I’ll keep an eye on that!