Because of reasons* i want to be able to break a content page into separate parts. I usually do this by splitting page.content with a separator string.
Up until a few versions ago i was using ~~~~~ or ===== to do so. However building the latest Zola seems that these chars now open a code block. Unfortunately i can’t date when the problem appeared as the last time i built my site the project was still called Gutenberg
Is this a regression or a feature? Is there a better editor-friendly character sequence i should use to replace it that i’m sure is not going to be markdownified at some point? ^^
Thanks!
*I think it’s very editor-friendly to have header/footer content defined in an actual page (instead of an HTML template they could break). Dividing the page into separate parts can allow to build clever multi-column layouts, among many other things
Upon testing again, i figured ===== works as intended if i leave blank lines around, which sounds fair to me given that other symbols you suggested don’t really visually suggest horizontal lines breaking the content page.
if anyone comes looking here you are gonna want to split the page content into two global variables like so: {% set_global page_split = page.content | split(pat="======") %} {% set_global column_one = page_split.0 %} {% set_global column_two = page_split.1 %}
and then use them in your page like: {{ column_one | safe }} {{ column_two | safe }}