Turn Mojibake into a flat file blog using Flask, Flask-FlatPages and Frozen-Flask. Python 2.7.3.
The Frozen files are in the frozen directory.
Possible moving into DB territory for building the categories and archive....
To create migrations
python run.py db init
Generate initial migration
python run.py db migrate
Apply migration
python run.py db upgrade
After every database model change run migrate
and upgrade
again
To initiate the DB and make tables for the views
python run.py manage_db
After new posts are added or existing posts change run the same again
When making a post, put the date as UTC for the localisation in moment.js to work
datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')
-
Maybe use the editor like in Ghost? The Editor uses this to convert the markdown to HTML, and jQuery with a simple cross-multiplication of content height (editor & preview) to adjust the the scroll on the other panel. - Source
-
Check Pagination worksLooks good -
Clean up unused files
-
Are the times displayed really localised? Hm..Yep! -
Shadows on the bans page, this page needs a bit of a tidy upDone -
Maybe move the about page and any other similar pages made in the future to .md files and have them generated too?
Using examples from here and here
HTML 5 Template from html5up