mojombo/jekyll — Issue #430: page content sometimes not textiled?
Author: tolmasky
Created: 2011-11-01 03:13:37+00:00
State: open

So, I'm not sure if this is actually an issue or if I'm just misunderstanding something. I have a blog and there are two basic pages: the index page (which lists the first five posts with their content), and then the individual post pages. Since the posts are displayed the same way in both pages, I have a short include file "article.html" that looks something like this:

```html

{{ post.title }}

{{ post.content }}
```

then, in index.html:
{% for post in posts limit:5 %}
{% include article.html %}
{% endfor %}

So far so good, this works perfectly.

Now, the problem is in post.html:

{% assign post = page %}
{% include article.html %}

This *almost* works as expected, except that the content is shown in the non-textiled compiled way. I tried all sorts of combinations and ended up just having to create a new variable post_content that I {% assign post_content = content %} to get it to work.

Any idea what's going on?