Skip to content

如何才能使文章内容按照标签分别展示呢? #5

@Allianzcortex

Description

@Allianzcortex

在issue里提出自己的问题感觉有点怪怪的^……

jekyll文档里是这么说的:

Pagination does not support tags or categories
Pagination pages through every post in the posts variable regardless of variables defined in the YAML Front Matter of each. It does not currently allow paging over groups of posts linked by a common tag or category. It cannot include any collection of documents because it is restricted to posts.

那么实在不明白像:{% for post in paginatcategories.book %} 这样的语句里有什么作用,参见:https://github.com/Allianzcortex/Allianzcortex.github.io/blob/master/book/index.html

并且我和安亚的博客思路好像也不一样,我是按照每个模块(blog/book/read)里都有一个index.html,用它来展示每个我想要的页面。

草草地展示一下我的页面: allianzcortex.github.io ,博文一栏展示的是所有的文章;而我想要book一栏只展示categories/tag 为book的文章。好像很难做到的样子??……

安亚有什么好的思路嘛,求帮助(^_^)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions