jandecaluwe / urubu

A micro CMS for static websites, with a focus on good navigation practices.
urubu.jandecaluwe.com
GNU Affero General Public License v3.0
179 stars 36 forks source link

Using blocks in template from markdown #50

Open gregersn opened 8 years ago

gregersn commented 8 years ago

Hi,

I am trying to lay out some content from markdown in a template using multiple blocks.

First I just tried using the {% block foo %}something{% endblock %}, but that obviously didn't work, and then I tried putting it in a property with a name in the "header" for the markdown file, which worked better. But, since the content I was using also needed to use a jinja filter, it didn't turn out the way I wanted it, cause that doesn't seem to be parsed for those parts of the markdown file.

Is there a way to do this properly?

jandecaluwe commented 7 years ago

If the template is a common organization, you could envisage to build content from multiple content, perhaps organized in a directory and following a specific naming convention. And perhaps using a None layout to indicate content that doesn't need to be on page on its own.