Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arturi/lettuja
A smart static site and blog generator :books:
https://github.com/arturi/lettuja
Last synced: 2 months ago
JSON representation
A smart static site and blog generator :books:
- Host: GitHub
- URL: https://github.com/arturi/lettuja
- Owner: arturi
- Created: 2014-10-19T14:32:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T05:58:57.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T07:08:13.619Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 865 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
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```