【发布时间】:2013-06-25 22:21:03
【问题描述】:
我有一个 Markdown 页面 index2.md 如下:
---
layout: plain
title: Index2
---
test Index2
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
但是这不能显示我的博文
<body>
<div class="wrapper">
<header>
<h1>Nodeclipse.github.io</h1>
<p>Resource for Nodeclipse developers</p>
<p class="view"><a href="https://github.com/Nodeclipse">View My GitHub Profile</a></p>
</header>
<section>
<div>
<p>test Index2</p>
<p> <ul class="posts"></p>
<p> </ul></p>
</div>
</section>
<footer>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
</div>
<script src="javascripts/scale.fix.js"></script>
</body>
即博客列表为空。
【问题讨论】:
-
您的问题似乎是您的
ul块被解释为文本。你在index2.md中使用标签吗?如果是这样,请尝试将制表符转换为空格。 -
是的。但是仍然缺少帖子
标签: ruby github markdown jekyll