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

Twig tags not rendered in posts located at variable site.posts #6

Closed
yosymfony opened this Issue Mar 23, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@yosymfony
Copy link
Member

yosymfony commented Mar 23, 2014

When you iterate across posts located in the variable site.posts Twig tags of each post are not rendered.

Example: rss.xml


---

---
{% for post in site.posts | slice(0, site.max_item, true) %}
            <item>
                <title>{{ post.title }}</title>
                <description><![CDATA[{{ post.content }}]]></description>
                <link>{{ site.url }}{{ post.url }}</link>
                <pubDate>{{ post.date | date("D, d M Y H:i:s O") }}</pubDate>
                <guid>{{ site.url }}{{ post.url }}</guid>
            </item>
{% endfor %}

Each description node have Twig tags not rendered.

@yosymfony yosymfony changed the title Twig tag not rendered in posts located at variable site.posts Twig tags not rendered in posts located at variable site.posts Mar 23, 2014

@yosymfony yosymfony added the bug label Mar 23, 2014

@yosymfony

This comment has been minimized.

Copy link
Member

yosymfony commented Mar 29, 2014

Similar situation occurs with variables site.categories and site.tags.

@yosymfony yosymfony self-assigned this Mar 29, 2014

yosymfony added a commit that referenced this issue Mar 29, 2014

@yosymfony yosymfony closed this Mar 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment