Collect code snippet, powered by Flask
WARNING: Write this just for fun, and not stable, be used with caution...
configs.py
: setSNIPPETS_ROOT
, root path of snippets.site.yaml
: settitle
, used by template, site title.uwsgi.ini
: setbase
,home
by comment.
---
title: 'xxx'
description: 'xxx'
tag: xxx1,xxx2
date: 2015-10-23 00:00
id: xxx
---
...
...
title
: snippet post titledescription
: optional, not used by nowtag
: optional, as keyword, separated by commadate
: datetime format inYYYY-MM-DD HH:MM
id
: 8-digits letters or digits
Generate random 8-digits id:
$ python -c "import string,random; print ''.join(random.choice(string.ascii_letters + string.digits) for x in range(8))"