Skip to content

blobcode/luna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌙 Luna

About

Luna is a static site generator written in rust that takes in markdown and generates a fully working static site!

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

To build the project, you will need a working rust enviroment.

Installing

To get the dev enviroment running, first clone the repo

git clone https://github.com/blobcode/luna

and then cd into it.

cd luna

You can then run the project

cargo run

Usage

Using luna is simple. Just use luna new <name> to generate a new project. This creates a folder with a luna.ini config file, and a templates and posts folder. In the templates folder, there are 3 files: home.html, post.html and posts.html. These are templates for your posts. In the posts folder, there are markdown documents, which have a front matter defining data and then the post body. Run luna serve to generate and serve your files. Run luna generate to build your html.