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/
VeryCB
V2EX  ›  Jekyll

Jekyll换主题push到github没反应,求解

  •  
  •   VeryCB · 2012 年 3 月 8 日 · 8072 次点击
    这是一个创建于 5060 天前的主题,其中的信息可能已经有所发展或是发生改变。
    继续问小白问题...

    在本地用

    $ rake theme:switch name="tom"

    换好了主题,

    jekyll --server

    本地测试成功,然后

    git add .
    git commit -m '...'
    git push

    到github page,但等了一天了主题都没换过来...

    求解~

    PS:其他都正常,也可以创建post,然后Push到github上都会收到notification说build successful,就是换主题怎么push都收不到build成功的通知:(
    21 条回复    1970-01-01 08:00:00 +08:00
    just44
        1
    just44  
       2012 年 3 月 8 日
    LZ还使用wordpress吧..
    cxh116
        2
    cxh116  
       2012 年 3 月 9 日
    git push -f
    VeryCB
        3
    VeryCB  
    OP
       2012 年 3 月 9 日
    @cxh116 没用...
    fanzeyi
        4
    fanzeyi  
       2012 年 3 月 9 日
    ctrl + F5
    iandyh
        5
    iandyh  
       2012 年 3 月 9 日
    Github 缓存。
    VeryCB
        6
    VeryCB  
    OP
       2012 年 3 月 10 日
    @iandyh 一开始我也这么觉得...不过这缓的时间也太久了点吧...都好几天了还没反应
    @fanzeyi 强制刷新或者清除缓存都没用...
    MartianZ
        7
    MartianZ  
       2012 年 3 月 10 日 via iPod
    rake generate?
    貌似还有另外几个让主题生效的命令
    VeryCB
        8
    VeryCB  
    OP
       2012 年 3 月 10 日
    VeryCB
        9
    VeryCB  
    OP
       2012 年 3 月 10 日
    算了,我还是把仓库删掉重新弄吧...
    MartianZ
        10
    MartianZ  
       2012 年 3 月 10 日 via iPod
    你直接看看html代码里面的js和css是什么情况,是不是首页那里没更新?
    VeryCB
        11
    VeryCB  
    OP
       2012 年 3 月 10 日
    @MartianZ 本机换成功了,也得到了如下消息:

    Generating 'tom' layout: default.html
    Generating 'tom' layout: page.html
    Generating 'tom' layout: post.html
    => Theme successfully switched!
    => Reload your web-page to check it out =))

    push到github也成功了,而且github上“_layouts”目录里的3个文件也都是新生成的,比如default.html是

    git://gist.github.com/2007382.git

    但访问的时候还是twitter主题:(
    jinyue524
        12
    jinyue524  
       2012 年 4 月 12 日
    貌似登录你的博客以后刷新一下就好了,好像默认载入的是你电脑中缓存的网页
    wildchild
        13
    wildchild  
       2012 年 4 月 23 日
    是浏览器缓存的,我每次都要清掉本地缓存更改才能显示出来,不知道有什么办法解决这个问题啊
    stingh711
        14
    stingh711  
       2012 年 4 月 23 日
    先去github看看souce code是不是对的,再换个浏览器试试。
    archeryan
        15
    archeryan  
       2012 年 9 月 16 日
    挖贴……
    我也遇到这个问题……LZ怎么解决?
    查看code是最新的,但是githubpage却没有更新(缓存已经清过了)…… TAT
    VeryCB
        16
    VeryCB  
    OP
       2012 年 9 月 16 日
    @archeryan 我最后放弃用jekyll-bootstrap,改用Octopress了~
    0racleTink
        17
    0racleTink  
       2012 年 9 月 16 日
    浏览器缓存?
    VeryCB
        18
    VeryCB  
    OP
       2012 年 9 月 16 日
    @sophy 不是
    archeryan
        19
    archeryan  
       2012 年 9 月 16 日
    @VeryCB 我是用 docpad https://github.com/bevry/docpad 的,折腾了一上午,将内容删了再ci,将项目删了再新建,重复了N次,最后终于行了Orz……
    archeryan
        20
    archeryan  
       2012 年 9 月 26 日
    @VeryCB 坑爹……这个问题一直没解决……莫非每次都要删掉重建??

    于是我干脆在github上在线修改……发现githubpage还是无法更新……QAQ……
    melaozhu
        21
    melaozhu  
       2012 年 9 月 26 日
    我也遇到了这个问题,应该是jekyll生成静态页面这个过程有延迟,过一会儿就好了。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5907 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:19 · PVG 14:19 · LAX 22:19 · JFK 01:19
    ♥ Do have faith in what you're doing.