Crates.io | onepage |
lib.rs | onepage |
version | 0.1.8 |
source | src |
created_at | 2022-03-23 04:35:22.021986 |
updated_at | 2022-04-29 06:45:58.202184 |
description | A simple static site generator |
homepage | |
repository | https://github.com/hanpei/onepage |
max_upload_size | |
id | 555039 |
size | 1,460,889 |
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
date: 2020-03-15 10:54:39
---
---
title: hello world
date: 2020-03-15 10:54:39
tags:
- awesome-tag
- more-awesome-tag
---