在 jekyll 博客中支持标签的简单方法 [英] An easy way to support tags in a jekyll blog

查看:31
本文介绍了在 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?

推荐答案

这个 gist 将为您生成每个类别的页面: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆