Skip to content

notangelmario/rumage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rumage

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.

Features

  • ⚡️ Blazingly fast
  • ✨ Simple by design
  • 📄 Markdown and HTML
  • 💔 ZERO JavaScript
  • 🧑‍💻 Customizable

Installation

Make sure you have installed cargo and install rumage like this:

cargo install rumage

or check releases

Usage

For building:

rumage build

Pages

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)

Style

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.

Head tag

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

Routing

The routing is very simple, all files represent a route.

Custom components

Planned

Nav & Footer

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
---