tears

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.

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 [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

Related Repositories

formik

formik

Forms in React, without tears ...

recycler-core

recycler-core

Multiple view type handling in RecyclerViews with 90% less tears ...

emojityper.github.io

emojityper.github.io

Github said "Error saving your changes: Description contains unicode characters above 0xffff" when I put the FACE LAUGHING WITH TEARS OF JOY emoji in this box ...

django-email-registration

django-email-registration

So simple you'll burst into tears right away. ...

tears-of-saliva

tears-of-saliva

gross things with computers ...