Jekyll Include Code for Documentation
I'm working on writing some documentation using Jekyll (to be hosted on
github).
What I want to do is have the same code partial be included in the
documentation page and then be used in the example page.
To get my documentation working I used the following code and it worked
```{% raw &}
<div class="content" itemprop="text">
<p>{{Text}}</p>
</div>{% endraw %}```
I then thought it would be nice if this was a partial/include file and
then include the partial on my docs and also on my example. So what I want
to do is
File foo.html located in _includes
<div class="content" itemprop="text">
<p>{{Text}}</p>
</div>
Then in my markdown file:
```{% raw &}{% include item.html param="code" %}{% endraw %}```
Which doesn't work.
Any idea on how I can include an html file on a md page and then wrap it?
No comments:
Post a Comment