A simple static site genertor, convert md posts to html.
cargo run -- build
to build pagescargo run -- serve
to build pages, and make a server at localhostcargo install onepage
onepage init [dir]
: download template files from githubonepage serve
onepage build
onepage new {filename}
: create new post/pages
: markdown source file
index.md
=> index page/posts/*.md
=> post page/image
images used in markdown file/dist
: generated site/static
: static resources
/assets
: img/css/font/favicon
favicon files/templates
: html templates/src
: rust src.md
file in /pages/posts/
title
(required),date
(required),tags
(optional)onepage new {filename}
to create new post.title: hello world
```
title: hello world date: 2020-03-15 10:54:39 tags: - awesome-tag
```