ONEPAGE
Overview
A simple static site genertor, convert md posts to html.
- Read /pages markdown files
- Parse md to html by pulldown cmark
- Render into tera template
- styled by picocss and highlightjs
Online demo
Usage
clone this repo, and:
cargo run -- build to build pages
cargo run -- serve to build pages
Structure
/pages: markdown source fileindex.md=> index page/posts/*.md=> post page/imageimages used in markdown file
/dist: generated site/static: static resources/assets: img/css/font/faviconfavicon files
/src: rust src
Todo
- site initialize to new path
- site config file
- css style
- add command line
- serve /dist
- watch /pages and rebuild