visoar / static-125

Build a static blog generator in 125 lines of JS

Home Page:https://cn.ylines.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

static-125

Introduction

English | 中文

Usage

# install dependencies
npm i

# generate blog
node index.js --baseURL "https://ylines.org" --title "Y Lines" --fromPath "posts" --destPath "build" --themePath "themes/ylines.org"

Params

  • --baseURL: base url of your blog
  • --title: title of your blog
  • --fromPath: the folder path where you store blog posts
  • --destPath: where you want to store the blogs
  • --themePath: the folder path where theme is stored

About

Build a static blog generator in 125 lines of JS

https://cn.ylines.org

License:MIT License


Languages

Language:CSS 51.9%Language:JavaScript 30.5%Language:HTML 17.6%