在github.io上给jekyll添加分类和标签页
花了些时间写了插件支持jekyll自动生成category和tag的索引页,并支持分页,push到github上发现悲剧,github.io不支持自定义插件. 欲哭无泪,不过也可以理解,毕竟静态页面是github服务器自动生成的,插件是用ruby语言写的,如果有人心存不轨还是很麻烦的. 关于github.io对插件的支持,看看这篇文章Adding Jekyll plugins to a GitHub Pages site 怎么办? 没办法,那就自己静态化了.参考这个Separate pages per tag/category with Jekyll (without plugins), 去插件来实现标签和分页. 实施步骤 1. 为标签和分类建立2个模板 github_category_index.html --- layout: page --- <div class="posts-list"<span...
[Read More]