tears
tears copied to clipboard
A particularly clean blog base on bottle and mongoDB
tears
A bottle of tears
tears (support Python3 only) is a pure clean blog (engine), powered by bottle.
I love next cause you may found some dim shapes of it's layout.
- tears keeps simple and clean both in interface and backend, focus on content
- all backend code in one file to follow bottle's style
- posts with raw markdown files, just back up
source
folder periodically - contains a
post_engine
which check markdown files and insert them into mongoDB - work best in the latest desktop and mobile browsers (because of bootstrap)
Usage
suppose you have mongodb installed in your system
git clone [email protected]:shnode/tears.git
pip install -r requirements.txt
generate /source
:
python post_engine.py -i
create your post:
python post_engine.py -c [your file name]
then edit your post markdown file, you must follow the form below(yaml), or tears will give you syntax error:
title: this is a example
date: 2016-03-13 16:44:00
categories: Language
tags:
- Ruby
- Dynamic-programming-language
---
your content
finally we insert posts into mongoDB, then access the url:
python post_engine.py -g
python tears.py
open "http://localhost:8080"
ps: you may modify some personal information
License
MIT