Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using blocks in template from markdown #50

Open
gregersn opened this issue Jun 1, 2016 · 1 comment
Open

Using blocks in template from markdown #50

gregersn opened this issue Jun 1, 2016 · 1 comment

Comments

@gregersn
Copy link
Contributor

gregersn commented Jun 1, 2016

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants