爱意满满的作品展示区。
gowithwind

我的又小又丑的博客程序,基于 github pages,只支持 markdown。不善美工,只能以极简示人,欢迎拍砖。

  •  
  •   gowithwind · Oct 8, 2014 · 6840 views
    This topic created in 4233 days ago, the information mentioned may be changed or developed.
    博客搬了很多家,累了,也不想自己专门搞空间,搭个博客,之前考虑过Jekyll,但是太依赖本地了,不是很爽,自己折腾了下三十来行代码,感觉以后就github呆下去了。

    代码地址 <https://github.com/gowithwind/butterfly.log>;
    示例博客 <http://gowithwind.github.io/blog/>;
    Supplement 1  ·  Oct 8, 2014
    不好意思,选错格式了。
    代码地址 https://github.com/gowithwind/butterfly.log
    示例博客 http://gowithwind.github.io/blog/
    30 replies    2014-10-11 08:53:57 +08:00
    M31415927
        1
    M31415927  
       Oct 8, 2014   ❤️ 1
    404
    TrustyWolf
        2
    TrustyWolf  
       Oct 8, 2014
    404
    happywowwow
        3
    happywowwow  
       Oct 8, 2014   ❤️ 1
    both 404
    gowithwind
        4
    gowithwind  
    OP
       Oct 8, 2014   ❤️ 1
    不好意思,选错格式了。
    代码地址 https://github.com/gowithwind/butterfly.log
    示例博客 http://gowithwind.github.io/blog/
    sarices
        5
    sarices  
       Oct 8, 2014
    ajax方式实现seo比较麻烦,可以用nodejs或者php做个前端放在服务器上面
    juicy
        6
    juicy  
       Oct 8, 2014
    我就爱把博客搭在github上,就喜欢用markdown,多便捷啊~很多时候随便花个几分钟就写篇博客,算作自己的一种简短的记录和感悟,那种长篇大论的真的让人很累,不容易坚持下去~
    gowithwind
        7
    gowithwind  
    OP
       Oct 8, 2014
    @sarices 是有这个问题,依赖后端的话就不够简单了。不过可以让搜素引擎索引markdown文件。
    gowithwind
        8
    gowithwind  
    OP
       Oct 8, 2014
    @juicy 是这样的,搬家很糟心,备份也糟心。
    WKPlus
        9
    WKPlus  
       Oct 8, 2014
    看起来蛮清晰的,代码能高亮显示么?
    之前也折腾过博客搬家,写了个脚本专门用来搬家,还蛮方便的https://github.com/WKPlus/vps
    gowithwind
        10
    gowithwind  
    OP
       Oct 8, 2014
    @WKPlus 目前应该不能高亮显示,需要相应的css支持,markdown也需要转换代码
    gongyiyi
        11
    gongyiyi  
       Oct 8, 2014
    确实不好看,还不如 搞个tumblr绑定个域名凑合下!
    wsph123
        12
    wsph123  
       Oct 8, 2014 via iPhone
    就喜欢这样的!!
    loading
        13
    loading  
       Oct 8, 2014
    还是喜欢jekyll,一次部署,到处提交。
    gowithwind
        14
    gowithwind  
    OP
       Oct 8, 2014 via Android
    @loading 这个其实也可以到处提交。本质上还是github pages。
    gowithwind
        15
    gowithwind  
    OP
       Oct 8, 2014 via Android
    @gongyiyi 需要漂亮,可以自己移植主题,应该不难的
    timothyye
        16
    timothyye  
       Oct 8, 2014 via Android
    page not found
    gowithwind
        17
    gowithwind  
    OP
       Oct 8, 2014 via Android
    @timothyye 用附言里的地址
    loading
        18
    loading  
       Oct 8, 2014
    jekyll是github page原生支持的,我只需要添加文章就可以了,你这个还要修改 index.md
    其实你种形式的已经有人写了。

    你这个是js驱动的,建议url使用 /#!/ 格式,便于google识别。
    loading
        19
    loading  
       Oct 8, 2014
    tumutanzi
        20
    tumutanzi  
       Oct 8, 2014
    这年头都喜欢鼓捣鼓捣静态博客。
    s51431980
        21
    s51431980  
       Oct 8, 2014
    @loading

    即使是/#!/ 不做server端支持的话,google还是识别不了

    类似的东西我也搞过,并且用了一段时间,后来从搜索引擎、RSS等方面考虑还是转移到了Jekyll
    gowithwind
        22
    gowithwind  
    OP
       Oct 8, 2014
    @s51431980 的确是对于搜索不友好,不过google应该能索引到代码目录中md文件的内容。
    gowithwind
        23
    gowithwind  
    OP
       Oct 8, 2014
    @loading 的确Sneezry的实现更完整。我这个追求的是简单,可靠,高度可定制性,也算达到了目的。采用自己写index.md的方式,主要还是首页经常需要自定义些链接,内容。
    Owenjia
        24
    Owenjia  
       Oct 8, 2014
    我这里显示似乎不正常,左边被挡住了。
    http://susepaste.org/47137569
    xcv58
        25
    xcv58  
       Oct 8, 2014
    感觉没必要重复制造轮子。
    gowithwind
        26
    gowithwind  
    OP
       Oct 9, 2014
    @Owenjia 是什么浏览器呀?
    Owenjia
        27
    Owenjia  
       Oct 9, 2014
    @gowithwind 用的 Firefox,不过看了下好像在 Chrome 里左边那个也会挡到
    Firefox:Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
    Chrome:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.13 Safari/537.36
    gowithwind
        28
    gowithwind  
    OP
       Oct 9, 2014
    @Owenjia 你截图上面的css好像都是基础的css,可能引用的一个bootstrap 的css文件没有获取到。
    Owenjia
        29
    Owenjia  
       Oct 9, 2014
    @gowithwind 恩,可能是我这里网络的问题~
    aping
        30
    aping  
       Oct 11, 2014
    谢谢楼主分享,学习了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5682 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 120ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    ♥ Do have faith in what you're doing.