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
from repo
clone this repo, and:
cargo run -- build to build pages
cargo run -- serve to build pages, and make a server at localhost
from cargo
cargo install onepage
onepage init [dir] : download template files from github
onepage serve
onepage build
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
/templates: html templates/src: rust src
Todo
- custom site config file
- site initialize to new path
- css style
- add command line
- serve /dist
- watch /pages and rebuild