You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out this plugin with the basic blog example from lektor quickstart and noticed that jinja content didn't work inside blog or blog post pages, but did work on the other pages.
Removing all macros from those pages, I can get jinja content to render correctly.
This doesn't work:
{% extends "layout.html" %}
{% from "macros/blog.html" import render_blog_post %}
{% from "macros/pagination.html" import render_pagination %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{% for child in this.pagination.items %}
{{ render_blog_post(child, from_index=true) }}
{% endfor %}
{{ render_pagination(this.pagination) }}
{% endblock %}
While this does:
{% extends "layout.html" %}
{% from "macros/blog.html" import render_blog_post %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{% for child in this.pagination.items %}
<a href="{{ child|url }}">{{ child.title }}</a>
{% endfor %}
{% endblock %}
Is this a bug or something to be expected? Any other way to get macros to work?
The text was updated successfully, but these errors were encountered:
I was trying out this plugin with the basic blog example from
lektor quickstart
and noticed that jinja content didn't work inside blog or blog post pages, but did work on the other pages.Removing all macros from those pages, I can get jinja content to render correctly.
This doesn't work:
While this does:
Is this a bug or something to be expected? Any other way to get macros to work?
The text was updated successfully, but these errors were encountered: