Vincent Prouillet 3cd5da2128 | 8 years ago | |
---|---|---|
src | 8 years ago | |
.editorconfig | 8 years ago | |
.gitignore | 8 years ago | |
Cargo.lock | 8 years ago | |
Cargo.toml | 8 years ago | |
README.md | 8 years ago |
Can be used for blogs or general static pages
Commands:
All pages go into the content
folder. Subfolder represents a list of content, ie
├── content
│ ├── posts
│ │ └── intro.md
│ └── some.md
some.md
will be accessible at mywebsite.com/some
and there will be other pages:
mywebsite.com/posts
that will list all the pages contained in the posts
foldermywebsite.com/posts/intro
Get all .md files in content, remove the content/
prefix to their path
Split the file between front matter and content
Parse the front matter
markdown -> HTML for the content
TO THINK OF: create list pages for folders, can be done while globbing I guess?
Render templates