V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
liteneo
V2EX  ›  分享创造

Hey - an admin plugin for hexo

  •  1
     
  •   liteneo · 2015-09-14 14:58:29 +08:00 · 4450 次点击
    这是一个创建于 3145 天前的主题,其中的信息可能已经有所发展或是发生改变。

    hexo-hey

    an admin plugin for hexo, support hexo v3.x
    built with gulp + babel + webpack
    using es6 + angular + materail + jwt

    Demo

    http://hey.liteneo.com/admin
    username: hexo
    passowrd: hey

    About

    How to use

    1. install hexo-hey

    npm install nihgwu/hexo-hey --save
    

    2. add a admin config section to _config.yml:

    # Admin
    admin:
        name: hexo
        password: hey
        secret: hey hexo
        expire: 60*1
        # cors: http://localhost:3000
    
    Error: language "yml" is not supported

    cors is optional if you want serve your client in another place (CDN for example )

    3. serve hexo

    hexo serve
    

    then visit http://localhost:4000/admin, and login with the account set in previous step

    第 1 条附言  ·  2015-09-14 16:08:31 +08:00
    looks awful on Windows right now, please view the demo on Mac or a modern browser at least
    16 条回复    2017-03-06 02:17:20 +08:00
    bhqt
        1
    bhqt  
       2015-09-14 15:48:32 +08:00
    不能不说的是,这个东西碉堡了。有这东西,就不用本地去编辑文件发布了吧
    kingme
        2
    kingme  
       2015-09-14 16:03:35 +08:00
    感觉要研究下, MARK
    zhyu
        3
    zhyu  
       2015-09-14 16:21:34 +08:00
    看起来超级棒啊,已 star
    oott123
        4
    oott123  
       2015-09-14 17:10:34 +08:00 via Android
    实在是不理解特意搞个静态博客又特意搞个后台…
    静态博客不就是图个文件管理博文 可以随便用本地编辑器啥的
    真有后台需求为啥不直接用个动态的程序 OTL
    liteneo
        5
    liteneo  
    OP
       2015-09-14 17:41:38 +08:00
    @oott123 静态的轻+动态的易,如果你需要经常切换写作环境,其实纯静态也是挺劳心的,还有图片之类的资源,下一步加入 clip&paste ,这就是我想要的
    liteneo
        6
    liteneo  
    OP
       2015-09-14 17:43:00 +08:00
    @oott123 比如 ghost ,我非常反感他们管理者的强硬态度,以及对开发者的藐视
    giuem
        7
    giuem  
       2015-09-14 17:54:22 +08:00 via Android
    我想知道这个是用在本地然后 git 上传到 github 上吗
    liteneo
        8
    liteneo  
    OP
       2015-09-14 18:16:05 +08:00
    @giuem 这要看你是如何 deploy 的,如果你是部署到 github ,建议配合自动化工具
    adoyle
        9
    adoyle  
       2015-09-14 18:25:00 +08:00
    好评!
    yuwan
        10
    yuwan  
       2015-09-15 11:11:43 +08:00
    @ liteneo
    挺不错,图片的 clip$paste ,会自动上传到图床么
    liteneo
        11
    liteneo  
    OP
       2015-09-15 14:12:12 +08:00 via Android
    @yuwan sure
    yuwan
        12
    yuwan  
       2015-09-15 16:35:17 +08:00
    @liteneo 不能更赞,要用哪个图床
    Yamade
        13
    Yamade  
       2015-09-15 19:12:52 +08:00
    楼主我爱你
    aksoft
        14
    aksoft  
       2015-09-27 07:26:47 +08:00 via Android
    密码在哪.。。
    wmwwmv
        15
    wmwwmv  
       2017-03-04 16:13:49 +08:00
    开始没问题
    后来总是提示用户名密码错误。
    liteneo
        16
    liteneo  
    OP
       2017-03-06 02:17:20 +08:00
    @wmwwmv 好久没维护了。。有空打算重新
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1615 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:58 · PVG 00:58 · LAX 09:58 · JFK 12:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.