stasige
v0.3.3
Published
Stasige - static site generator with pug, sass, typescript, markdown
Maintainers
Readme
stasige
Install
npm i -g yarn
# or
npm i -g bun
npx stasige-init # the script will ask for all missing parameters
npx stasige-init --bun # for bun PM using. default PM - yarn
cd new-project
#or
npx stasige-init new-project
#or
npx stasige-init [--mono | --multi] [--framework [bootstrap | bootstrap.native]] new-projectnpx stasige-init --mono --framework bootstrap new-projectnpx stasige-init --mono --framework bootstrap.native new-projectnpx stasige-init --multi --framework bootstrap new-projectnpx stasige-init --multi --framework bootstrap.native new-projectFor multi mode
new-project/sites/default- default bootstrap templateyarn copy new-tmp- create copy insites/new-tmpFor mono mode- One template in
new-project/
Build
#mono
yarn wrk -cb
#multi
yarn wrk -cb <site-name>Show available commands
yarn manPages
Pages in /sites/<site-name>/pages/ for each language. Or in /pages/ for mono mode
# for home page
/pages/index.en.md #compile to '/' as main lang
/pages/index.ru.md # -> '/ru/' as russian lang etc
# for about page
/pages/about/index.en.md #compile to '/about/' as main lang
/pages/about/index.ru.md # -> '/about/ru/' as russian lang etcmd file has yaml section in top with separator <!--config-->
File.md format
```yaml
layout: default
menuShort: Menu title
menuLong: Menu long title
title: Head title or its part
```.
<!--config-->
Content of page as markdownConfig
layout: see /views/layout/*.pug
menuShort: Menu title
menuLong: Menu long title
title: Head title or its partUsage
Copy default site template to new one
#for multi mode only
yarn copy mysiteBuild default site
# multi mode
yarn wrk -b default
# mono mode
yarn wrk -bDeploy default site
# multi mode
yarn wrk -d default
# mono mode
yarn wrk -dBuild & deploy default site
# multi mode
yarn wrk -bd default
# mono mode
yarn wrk -bdTo ssg development
git clone [email protected]:wunderwa/stasige.git stasige
cd stasige
yarn