Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arturi/lettuja

A smart static site and blog generator :books:
https://github.com/arturi/lettuja

Last synced: 22 days ago
JSON representation

A smart static site and blog generator :books:

Awesome Lists containing this project

README

        

Lettuja
=======

A static site and blog generator written in Node.js. It takes Markdown ```.md``` files from a content folder ```content```, parses it using Handlebars templates and outputs HTML files to an ```output``` folder.

## Features

* Supports multiple languages or environments — each with its own language and settings: ```content/ru```, ```content/en```, ```content/fi```, `content/main` and so on. Update i18n strings at ```config.json```
* Supports post drafts, use ```type: draft``` in the post header and look for the draft at ```http://example.com/ru/drafts/your-draft-post```
* Image uploads and automatic resizing
* Github-flavored Markdown
* Blazing fast

## Post Format

```
---
Title: "Hello, World"
Date: 2014-09-17 16:40
Cover: "cover-image.jpg"
---

Hi. Here is my post.
```

## Usage

1. Update everything in ```config.json```: setup passwords, strings and URLs.
2. Run the app with ```node lib/index.js``` or use [PM2](https://github.com/Unitech/pm2).
3. Every time Lettuja detects a file change it will generate your site. To upload images, head to ```http://example.com/admin```