【发布时间】:2014-12-08 04:31:37
【问题描述】:
我正在尝试在带有下载链接的 jekyll 页面中包含 c 程序的源代码。
我搜索了 jekyll 文档和 stackoverflow,但没有任何效果。 谁能指出正确的方法。
---
source: ["inf.c","find.c","error.c","stu.c","info.c"]
---
{% for c in page.source %}
<tr>
<th>
<a href="{{c}}">
{{c}}
</a>
</th>
</tr>
<tr>
<th>
{% highlight ruby %}
{% include {{page.permalink}}{{c}} %}
{% endhighlight %}
</th>
</tr>
{% endfor %}
【问题讨论】: