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

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

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

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

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

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