Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Allianzcortex opened this issue Jun 29, 2015 · 2 comments
Open

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

Allianzcortex opened this issue Jun 29, 2015 · 2 comments

Comments

@Allianzcortex
Copy link

在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的文章。好像很难做到的样子??……

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

@Allianzcortex
Copy link
Author

恩,,已经做到在不用分页的情况下的按照标签浏览。就这样吧,,等到以后文章多起来再修改。安亚暑假快乐,虽然还有很多考试ing^^

@lay1010
Copy link
Owner

lay1010 commented Jun 29, 2015

:)你已经解决了嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants