V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
heroicYang
V2EX  ›  分享创造

折腾了个Hexo的主题

  •  
  •   heroicYang ·
    heroicyang · 2013 年 5 月 24 日 · 9342 次点击
    这是一个创建于 4631 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前些天偶然看到一个为Github Pages设计的主题,作者将其放到Github上的,觉得实在是很漂亮,于是我就按照其为自己的博客折腾了个主题,同样也是基于Hexo默认的light主题的。

    多的就不说了,已经放到Github上了,欢迎拍砖。



    Demo: http://heroicyang.com/

    Source code: https://github.com/heroicyang/hexo-theme-modernist
    28 条回复    1970-01-01 08:00:00 +08:00
    twor2
        1
    twor2  
       2013 年 5 月 25 日
    的确比较顺眼,可我木有博客
    twor2
        2
    twor2  
       2013 年 5 月 25 日
    再吐槽,为啥新浪微博的皮肤那么丑? 如果也能装一个这样的就好多了
    heroicYang
        3
    heroicYang  
    OP
       2013 年 5 月 25 日 via iPhone
    @twor2 新浪微博的话,你可以下载Chrome的“微博急简”插件,这个不需要折腾,也很漂亮简洁。或者下载“眼不见心不烦”插件,然后自己配置或修改样式。
    chainkhoo
        4
    chainkhoo  
       2013 年 5 月 25 日
    用jekyll的表示好可惜
    Aether
        5
    Aether  
       2013 年 5 月 26 日   ❤️ 1
    可用性不太好。
    1、没办法一眼看出那些是一篇,那些是另外一篇,主要是因为代码块
    2、没办法一眼找到翻页
    heroicYang
        6
    heroicYang  
    OP
       2013 年 5 月 27 日
    @Aether 感谢建议,已经做了小调整~
    liuweifeng
        7
    liuweifeng  
       2013 年 5 月 27 日
    非常感谢,收了~
    zhujinliang
        8
    zhujinliang  
       2013 年 5 月 27 日
    漂亮,挺不错的
    mouer
        9
    mouer  
       2013 年 5 月 27 日
    Archives 是不是应该只列出时间和标题好些?
    leohxj
        10
    leohxj  
       2013 年 5 月 27 日
    同问,如何让Archives只列出时间和标题?
    soli
        11
    soli  
       2013 年 5 月 27 日
    字体不好看
    heroicYang
        12
    heroicYang  
    OP
       2013 年 5 月 27 日
    @mouer
    @leohxj
    这个是可以通过更改hexo的配置文件调整的。修改hexo的_config.yml中archive的值为1,即不分页,就是只显示标题和时间了。
    zhangxiao
        13
    zhangxiao  
       2013 年 5 月 27 日
    非常不错,支持一个
    heroicYang
        14
    heroicYang  
    OP
       2013 年 5 月 27 日
    @soli 目前用的是这一套字体: Helvetica Neue, Helvetica, Arial, sans-serif
    leohxj
        15
    leohxj  
       2013 年 5 月 27 日 via Android
    @heroicYang 可以设置按年份归档吗?
    heroicYang
        16
    heroicYang  
    OP
       2013 年 5 月 28 日
    @leohxj 目前hexo貌似还不支持。 https://github.com/tommy351/hexo/issues/138
    heroicYang
        17
    heroicYang  
    OP
       2013 年 5 月 28 日
    @leohxj 我之后会在这个主题中考虑加入归档按年份来显示的功能。
    MayLava
        18
    MayLava  
       2013 年 5 月 28 日
    背景底纹我非常喜欢。
    最近迷上了衬线字体,有空fork一下换换字体。
    zippera
        19
    zippera  
       2013 年 5 月 28 日 via Android
    问下,我用的light主题,博客首页文章都是显示全文,不是摘要,怎么设置显示摘要呢?
    leohxj
        20
    leohxj  
       2013 年 5 月 28 日 via Android
    @heroicYang 我服务器上运行hexo server,上传文件到post目录不能正确生成博客需要删除db.json再hexo server。请问你是如何添加博客的?
    heroicYang
        21
    heroicYang  
    OP
       2013 年 5 月 28 日
    @zippera 如果需要显示摘要,在markdown写文章时插入 <!-- more -->即可,跟wordpress一样。
    heroicYang
        22
    heroicYang  
    OP
       2013 年 5 月 28 日
    @leohxj 貌似是因为hexo在新的版本中加入了缓存机制,也就是db.json这个文件。我之前也遇到文章内容没有更新的情况,也是直接删除了db.json文件再重新生成。我是部署的静态文件,没有运行server服务。
    leohxj
        23
    leohxj  
       2013 年 5 月 28 日 via Android
    @heroicYang 静态如何部署啊
    heroicYang
        24
    heroicYang  
    OP
       2013 年 5 月 28 日
    @leohxj 很简单啊。目前hexo提供了github pages、heroku的部署方案,貌似最近增加了ftp的部署方案。设置好配置文件,然后 hexo deploy --generate 即可。 http://zespia.tw/hexo/zh-TW/docs/deploy.html
    当然你也可以直接将hexo目录下的public目录拷到你得服务器上,配个nginx即可。
    zippera
        25
    zippera  
       2013 年 5 月 28 日 via Android
    @heroicYang 谢谢,明白了。
    yellow
        26
    yellow  
       2013 年 5 月 30 日
    底纹一直在闪烁
    heroicYang
        27
    heroicYang  
    OP
       2013 年 5 月 30 日
    @yellow 具体是哪个浏览器呢?
    yellow
        28
    yellow  
       2013 年 6 月 8 日
    @heroicYang Chrome (dev版本) for Mac
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1018 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:39 · PVG 06:39 · LAX 14:39 · JFK 17:39
    ♥ Do have faith in what you're doing.