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-03-08 23:44:06 +08:00 · 7522 次点击
    这是一个创建于 4431 天前的主题,其中的信息可能已经有所发展或是发生改变。
    继续问小白问题...

    在本地用

    $ 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-03-08 23:56:59 +08:00
    LZ还使用wordpress吧..
    cxh116
        2
    cxh116  
       2012-03-09 00:25:09 +08:00
    git push -f
    VeryCB
        3
    VeryCB  
    OP
       2012-03-09 00:43:04 +08:00
    @cxh116 没用...
    fanzeyi
        4
    fanzeyi  
       2012-03-09 00:44:06 +08:00
    ctrl + F5
    iandyh
        5
    iandyh  
       2012-03-09 02:24:48 +08:00
    Github 缓存。
    VeryCB
        6
    VeryCB  
    OP
       2012-03-10 00:16:21 +08:00
    @iandyh 一开始我也这么觉得...不过这缓的时间也太久了点吧...都好几天了还没反应
    @fanzeyi 强制刷新或者清除缓存都没用...
    MartianZ
        7
    MartianZ  
       2012-03-10 00:19:07 +08:00 via iPod
    rake generate?
    貌似还有另外几个让主题生效的命令
    VeryCB
        8
    VeryCB  
    OP
       2012-03-10 00:37:26 +08:00
    VeryCB
        9
    VeryCB  
    OP
       2012-03-10 00:52:20 +08:00
    算了,我还是把仓库删掉重新弄吧...
    MartianZ
        10
    MartianZ  
       2012-03-10 07:32:55 +08:00 via iPod
    你直接看看html代码里面的js和css是什么情况,是不是首页那里没更新?
    VeryCB
        11
    VeryCB  
    OP
       2012-03-10 08:35:11 +08:00
    @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-04-12 18:47:24 +08:00
    貌似登录你的博客以后刷新一下就好了,好像默认载入的是你电脑中缓存的网页
    wildchild
        13
    wildchild  
       2012-04-23 12:27:07 +08:00
    是浏览器缓存的,我每次都要清掉本地缓存更改才能显示出来,不知道有什么办法解决这个问题啊
    stingh711
        14
    stingh711  
       2012-04-23 12:35:49 +08:00
    先去github看看souce code是不是对的,再换个浏览器试试。
    archeryan
        15
    archeryan  
       2012-09-16 12:01:53 +08:00
    挖贴……
    我也遇到这个问题……LZ怎么解决?
    查看code是最新的,但是githubpage却没有更新(缓存已经清过了)…… TAT
    VeryCB
        16
    VeryCB  
    OP
       2012-09-16 13:10:26 +08:00
    @archeryan 我最后放弃用jekyll-bootstrap,改用Octopress了~
    sophy
        17
    sophy  
       2012-09-16 13:19:27 +08:00
    浏览器缓存?
    VeryCB
        18
    VeryCB  
    OP
       2012-09-16 13:22:49 +08:00
    @sophy 不是
    archeryan
        19
    archeryan  
       2012-09-16 14:12:57 +08:00
    @VeryCB 我是用 docpad https://github.com/bevry/docpad 的,折腾了一上午,将内容删了再ci,将项目删了再新建,重复了N次,最后终于行了Orz……
    archeryan
        20
    archeryan  
       2012-09-26 19:47:20 +08:00
    @VeryCB 坑爹……这个问题一直没解决……莫非每次都要删掉重建??

    于是我干脆在github上在线修改……发现githubpage还是无法更新……QAQ……
    melaozhu
        21
    melaozhu  
       2012-09-26 19:53:46 +08:00
    我也遇到了这个问题,应该是jekyll生成静态页面这个过程有延迟,过一会儿就好了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3723 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:50 · PVG 08:50 · LAX 17:50 · JFK 20:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.