V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Jekyll
http://jekyllrb.com/
Jekyll on GitHub
https://github.com/mojombo/jekyll
Jekyll-bootstrap
http://jekyllbootstrap.com/
Octopress
http://octopress.org/
sohu022
V2EX  ›  Jekyll

运行在 GitHub 上的 Jekyll 博客怎么样能够添加文章分类?

  •  
  •   sohu022 · 2014-05-30 15:52:35 +08:00 · 4066 次点击
    这是一个创建于 3619 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在Github上面搭建了一个Jekyll的博客,想给文章添加一下分类,网上搜了一下没看到有什么好的方案,大部分不能在Github上使用,大家有没有什么方法来实现呢?
    7 条回复    2014-08-13 15:31:23 +08:00
    bearcat001
        1
    bearcat001  
       2014-05-30 17:41:18 +08:00   ❤️ 1
    http://jekyllrb.com/docs/frontmatter/
    官方文档里有写,用category
    Aegwynn
        2
    Aegwynn  
       2014-05-30 17:54:46 +08:00   ❤️ 1
    zhwei
        3
    zhwei  
       2014-05-30 20:13:59 +08:00   ❤️ 1
    github上的jekyll支持tag的, 每篇文章添加一个tag不就是分类了么。
    sohu022
        4
    sohu022  
    OP
       2014-05-30 21:20:18 +08:00 via Android
    @zhwei 嗯,刚接触,以前一直用wordpress,后来用了转移到Ghost,最近有打算用github page,想在hexo 和jekyll以及octpress中间选一个。
    66beta
        5
    66beta  
       2014-05-30 22:55:07 +08:00
    @sohu022 hexo不后悔,jekyll/octopress要人命 T..T
    usedname
        6
    usedname  
       2014-05-30 23:10:03 +08:00
    http://never.doubting.me/2013/04/18/2013-04-18-setup-octopress-on-github-step-by-step/
    ---
    layout: post
    title: "教程:一步步在github上建立octopress博客"
    date: 2013-04-18 01:13
    author: znithy
    comments: true
    categories:
    - 教程
    - github
    - octopress
    published: false
    ---
    上面这个就是分类啊
    nolan1864
        7
    nolan1864  
       2014-08-13 15:31:23 +08:00
    @usedname
    如果模版没有是不是就不行了?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1711 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:52 · PVG 00:52 · LAX 09:52 · JFK 12:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.