Crates.io | rumage |
lib.rs | rumage |
version | 0.5.9 |
source | src |
created_at | 2022-11-04 22:55:17.349365 |
updated_at | 2023-08-28 13:53:37.729798 |
description | A simple framework for making simple markdown sites |
homepage | |
repository | https://github.com/notangelmario/rumage |
max_upload_size | |
id | 705524 |
size | 60,013 |
Rumage is a simple web framework. It converts Markdown files to plain HTML.
⚠️ Rumage is not fully production ready! It is pretty stable, but it needs more error handling. You could use it, but keep in mind that if you encounter an error, it might be harder to troubleshoot. I use it for my personal website.
Make sure you have installed cargo and install rumage like this:
cargo install rumage
For building:
rumage build
Rumage supports both Markdown and HTML pages. Create an index.md
or index.html
to create a home page.
Also add some properties at the top to add a title and description. By default, you need to
fill those in, else they will replaced with %title%
and %description%
. (this will be addressed soon),
index.md
---
title: Homepage
description: Cool page
---
# Homepage
lorem
If you want to do more with properties, check Head tag.
You can include HTML in Markdown files, but you can't include Markdown in HTML files. (this will be addressed soon)
To add style to your website, add a style.css
in your source folder. Rumage
will automatically pick it up and include it in all your pages.
By default, the head tag contains a customisable title and description property, a favicon and stylesheet.
Default name for favicon is favicon.png
and the global stylesheet is style.css
.
To customise the head of every page, add a _head.html
in your source folder.
You can use %property%
in the html to replace it with custom values from markdown
pages.
Example:
_head.html
<head>
<title>%title</title>
<meta name="description" content="%description%" />
<meta name="tags" content="%tags%" />
</head>
index.md
---
title: Home
description: The homepage
tags: tech, typescript, web, rust
---
# Hello world
The routing is very simple, all files represent a route.
Planned
To add a navbar or a footer, create a _nav.html
or _nav.md
for a navbar,
and _footer.html
or _footer.md
for a footer.
If those files are present in the source folder, all pages will contain navbar
and footer by default. To disable this, add nav: false
or footer: false
at the top of the file.
---
nav: false
footer: false
---