V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
liteneo

Hey - an admin plugin for hexo

  •  1
     
  •   liteneo · Sep 14, 2015 · 5198 views
    This topic created in 3883 days ago, the information mentioned may be changed or developed.

    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

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