V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
superhxnju
V2EX  ›  Go 编程语言

golang 静态博客生成

  •  3
     
  •   superhxnju ·
    superhx · 2015-08-04 16:33:49 +08:00 · 1908 次点击
    这是一个创建于 3159 天前的主题,其中的信息可能已经有所发展或是发生改变。

    本来开始只是想写个Markdown解释器来练练刚学的golang的。

    写完后觉得,既然写完了Markdown解释器,为什么不自己写个静态博客生成的程序呢?

    吐槽:之前一直觉得hexo生成的博客都是差不多的样子,分页目录+文章正文,感觉看文章的时候总是要前进后退,也是烦的不要不要的(╯3╰)

    于是开始勤san勤tian恳da恳yu认liang认tian真shai真wang的写了起来。写完博客生成部分,忽然觉得用命令行生成啊!部署啊!超级烦!所以又将这些功能用网页的形式实现了,在本地开一个服务器,就可以愉快的在浏览器里博客一条龙服务了╰( ̄▽ ̄)╮

    说说生成的博客有哪些不同的地方吧(自己觉得好的地方,可能我目光短浅没见过其他的
    - 目录可以直接在文章左边展开
    - 单页应用,切换文章不用重新加载有没有
    - 搜索标题或tag,直接在搜索框输入就有结果了

    还有很多不完善的地方,希望v2exer多提提意见(虽然感觉会懒得改=_=

    Markdown解释器: https://github.com/superhx/mark
    goblog静态博客生成: https://github.com/superhx/goblog
    Demo: http://superhx.github.io (其实就是我现在的博客)
    github: https://github.com/superhx

    还有感谢两位小伙伴在前端的帮助
    https://github.com/diponTaken
    https://github.com/GuoTianhao

    23 条回复    2015-08-05 18:43:04 +08:00
    superhxnju
        1
    superhxnju  
    OP
       2015-08-04 17:22:41 +08:00 via iPhone
    阿婆主伤心的自顶一个,其实我只是来求star的
    wupher
        2
    wupher  
       2015-08-04 17:27:50 +08:00   ❤️ 1
    支持造轮子!
    zjq426
        3
    zjq426  
       2015-08-04 17:28:25 +08:00   ❤️ 1
    给楼主加星星了
    flytiny
        4
    flytiny  
       2015-08-04 17:40:13 +08:00
    好评~
    superhxnju
        5
    superhxnju  
    OP
       2015-08-04 18:13:32 +08:00 via iPhone
    @wupher 感觉造轮子才是程序猿的乐趣所在呐!写业务逻辑的什么比较无聊😂
    superhxnju
        6
    superhxnju  
    OP
       2015-08-04 18:15:35 +08:00 via iPhone
    @zjq426 以后努力产生更有价值的星星
    datou552211
        7
    datou552211  
       2015-08-04 19:33:30 +08:00 via iPhone
    hugo
    mintist
        8
    mintist  
       2015-08-04 22:26:19 +08:00   ❤️ 1
    不错,蛮简洁的
    zhicheng
        9
    zhicheng  
       2015-08-04 22:30:29 +08:00
    TextArea.com 同求 Star !
    ipconfiger
        10
    ipconfiger  
       2015-08-04 22:30:43 +08:00
    https://github.com/ipconfiger/bibi 楼举,互star一个呗
    superhxnju
        11
    superhxnju  
    OP
       2015-08-04 22:36:55 +08:00
    @ipconfiger 已star
    ipconfiger
        12
    ipconfiger  
       2015-08-04 22:39:14 +08:00
    @superhxnju 也star
    xiaoyuvps
        13
    xiaoyuvps  
       2015-08-04 22:54:28 +08:00
    html生成的博客怎么解决评论的问题?

    用JS调用么?
    ipconfiger
        14
    ipconfiger  
       2015-08-04 22:54:56 +08:00
    @xiaoyuvps disqus啊,多说啊
    xiaoyuvps
        15
    xiaoyuvps  
       2015-08-04 22:57:55 +08:00
    @ipconfiger 评论到底能不能被搜索引擎收录从而吸引流量呢?
    xiaoyuvps
        16
    xiaoyuvps  
       2015-08-04 22:59:20 +08:00
    @ipconfiger 另外那个头部的刷新是怎么做的? Wordpress有类似插件么?
    xiaoyuvps
        17
    xiaoyuvps  
       2015-08-04 23:08:32 +08:00
    @ipconfiger 感觉看起来好牛逼
    superhxnju
        18
    superhxnju  
    OP
       2015-08-04 23:18:39 +08:00
    @xiaoyuvps 你是说头部的进度条么?是一个pace.js的库
    x4
        19
    x4  
       2015-08-04 23:47:46 +08:00 via Android
    @ipconfiger 多说。。。。经常抽。。。。
    sox
        20
    sox  
       2015-08-04 23:49:15 +08:00 via Android
    楼上怎么把 star 搞得像微博互粉一样了
    ipconfiger
        21
    ipconfiger  
       2015-08-05 01:00:00 +08:00
    @x4 我用得disqus
    GPU
        22
    GPU  
       2015-08-05 01:05:02 +08:00 via iPhone
    学Python 中,好想学Go
    gostar
        23
    gostar  
       2015-08-05 18:43:04 +08:00
    看着很不错的样子,改天研究下~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5280 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.