我有一個哲基爾本站filestructure像這樣:如何在jekyll中的markdown文件中包含HTML文件?
▾ _includes/
post-entry.html
▾ _posts/
2012-11-25-first-post.markdown
index.markdown
在我index.markdown,我想包括post-entry.html
這樣的:
{% for post in site.posts %}
* {% include post-entry.html %}
{% endfor %}
但這顯示爲HTML代碼段中博客。我如何防止HTML被 保護?
在這個文件中,我不得不把代碼放在頂部,但我最終還是照現在這樣做了。 PS:不看歷史,它實際上是不同存儲庫的歷史。必須做一個'rebase'或什麼的。 – SiddharthaRT
很酷,所以它聽起來像所有的東西都是按照你現在的意圖使用'index.markdown'文件中的液體代碼工作的,是的? – cboettig
不,現在我正在做的是你的鏈接底部實際提到的方法:[像這樣](git://gist.github.com/4174354.git)。當我將它包含爲'{%include post.html%}'時,我得到一個輸出,如[so](http://imgur.com/FOoDo)。 – SiddharthaRT