在jekyll博客中支持标签的简单方法 [英] An easy way to support tags in a jekyll blog
本文介绍了在jekyll博客中支持标签的简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用标准的jekyll安装来维护博客,一切都很好.除了我真的很想标记我的帖子.
I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really like to tag my posts.
我可以使用YAML前端标签来标记帖子,但是如何为每个标记生成页面,从而可以列出该标记的所有帖子?
I can tag a post using the YAML front matter, but how do I generate pages for each tag that can will list all posts for a tag?
推荐答案
此要点将为您生成每个类别的页面: https://gist.github.com/524748
This gist will generate a page per category for you: https://gist.github.com/524748
它使用Jekyll Generator插件以及Page子类.
It uses a Jekyll Generator plugin, plus a Page subclass.
这篇关于在jekyll博客中支持标签的简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文