Skip to content

shinux/tears

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Demo Preview | 预览

  • 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 git@github.com: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

About

A particularly clean blog base on bottle and mongoDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published