Markdown 杰基尔:显示不同类别的帖子

Markdown 杰基尔:显示不同类别的帖子,markdown,jekyll,blogs,github-pages,Markdown,Jekyll,Blogs,Github Pages,我有两种不同类别的帖子,即我的Jekyll-powered个人博客中的blog\u posts和notes,我试图在不同的永久链接下分别显示这两种类别的帖子,例如:/blog/link of post one和/notes/link of post two。这是当前的文件层次结构: -blog --index.html -notes --index.html -blog_posts --_posts --- 2018-06-07-link-of-post-one.md -notes_pos

我有两种不同类别的帖子,即我的Jekyll-powered个人博客中的
blog\u posts
notes
,我试图在不同的永久链接下分别显示这两种类别的帖子,例如:
/blog/link of post one
/notes/link of post two
。这是当前的文件层次结构:

-blog
--index.html

-notes
--index.html

-blog_posts
--_posts
--- 2018-06-07-link-of-post-one.md

-notes_posts
--_posts
--- 2018-06-07-link-of-post-two.md

-index.html

-_config.yml
_config.yml

name: Personal Blog
markdown: kramdown
permalink: /:categories/:year/:month/:day/:title
/blog/index.html

---
layout: default
title: Blog posts
---
    <h1>{{ page.title }}</h1>
    <ul class="posts">

      {% for post in site.categories.blog_posts %}
        <li><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
      {% endfor %}
    </ul>

我的配置和代码似乎有什么问题?

也许你的帖子被认为是在“未来”,因此没有打印出来。如果您现在重试,它可能会起作用。@DavidJacquel现在也不会显示帖子。site.categories%}{{c|inspect}{%endfor%}
Configuration file: /root_path/_config.yml
            Source: /root_path
       Destination: /root_path/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 0.03 seconds.
 Auto-regeneration: disabled. Use --watch to enable.