I have a jekyll site with filestructure like so:
▾ _includes/
post-entry.html
▾ _posts/
2012-11-25-first-post.markdown
index.markdown
In my index.markdown, I want to include a post-entry.html like this:
{% for post in site.posts %}
* {% include post-entry.html %}
{% endfor %}
But this appears as a HTML code snippet in the blog. How can i prevent the HTML from being
protected?
You can use liquid tags in any markdown file so long as it has YAML header matter. For instance, check out the index.md given in the jekyllbootstrap template for Jekyll sites.
If you link to your actual index.markdown or your repository itself (e.g. if it’s on github), we could probably get a better idea of what has gone wrong. Your example should work, though you might need to use HTML list element
<li>rather than the markdown*.