Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

bindo

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bindo

基于 Node.js 的静态博客框架.

latest
Source
npmnpm
Version
0.2.6
Version published
Maintainers
1
Created
Source

静态博客框架 Bindo

基于 Node.js 的静态博客框架.

施工中.

示例

https://ruiming.me/

使用

Bindo 提供两种部署方式. 支持本地部署或服务器部署. 本地部署下, 用户需要在本地自己写博客, 然后构建并发布到远程仓库上. 服务器部署下, Bindo 提供了一个简易的博客管理和书写系统, 你可以使用该系统来管理和书写您的博客.

本地

该方式和 Hexo 一样, 在本地写好博客后进行构建接着上传即可. 可以通过 Github Page 来部署.

  • 安装

    npm install bindo -g
    
  • 初始化

    找一个合适的地方执行以下命令.

    bindo i
    

    这会生成一个 bindo 文件夹, 该文件夹包含了用于存储 Markdown 文件的 posts 文件夹, 存放图片的 images 文件夹, 以及自动构建生成的 public 文件夹和配置文件 config.yml.

    posts 文件夹中的博客可以通过 /img/... 来引用 images 文件夹中的图片. 同时, 也支持 Hexo 的 asset_img 写法.

  • 配置

    不要忘了修改 config.yml 中的选项特别是 repo 仓库. 正确配置这一步, 同时确保你的机器上面安装有 Git.

  • 构建

    bindo 文件夹中执行命令.

    bindo g
    

    会自动的构建静态博客到 public 文件夹中.

  • 发布

    执行以下命令即可发布到 Repo 上面.

    bindo d
    

服务器

  • Clone 或下载本项目
git clone git@github.com:ruiming/bindo.git
  • 安装依赖
npm install
  • 配置

请修改 config.yml 进行配置

  • 运行
npm start

访问 /bindo 即可进入后台管理页面, 需要先进行初始化配置及登录. 之后在上面书写管理博客即可, 系统会自动重新构建静态博客.

兼容 hexoasset_img 的图片插入写法.

FAQs

Package last updated on 07 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts