/static-125

Build a static blog generator in 125 lines of JS

Primary LanguageCSSMIT LicenseMIT

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