尽管 collection 在 parent 页面上迭代,但 Jekyll collection 文件不是从 md 生成的?

Jekyll collection files not generated from md although collection iterates on parent page?

我不确定自己做了什么。我从 collections 文件夹中添加了一些新页面。

文件夹和文件在站点文件夹中创建。

但是我可以迭代我的 collections 并查看链接,但是由于未创建文件,链接会出现 404 错误。

我已经 re-saved 文件为 utf8,但这没有帮助,在相关问题中提到。

我什至删除了所有文件并放回了之前有效的原始测试文件。

愚蠢的是我没有在源代码管理下的项目。

显然 jekyll 可以看到它们并读取它们的内容并且循环工作...

但是没有生成文件。

<h3>User Guides</h3>
{% for user in site.stt_userguides %}
{::nomarkdown}
    <a href="{{ user.url }}">
        <h3>{{ user.title }}</h3>
    </a>
    <p>{{ user.content | markdownify }}</p>
{:/}
{% endfor %}

<h3>Features</h3>
{% for user in site.stt_features %}
{::nomarkdown}
    <a href="{{ user.url }}">
        <h3>{{ user.title }}</h3>
    </a>
    <p>{{ user.content | markdownify }}</p>
{:/}
{% endfor %}

我正在使用这个命令...

bundle exec jekyll serve

确认文件未找到。

由于实施 collections 的初始配置问题,我无意中删除了 output: true 设置,这对于在 collection 下添加永久链接 属性 也很有用 config.yml.

如本页 collections 部分所示 https://jekyllrb.com/docs/permalinks/