A very simple blog with Flask and Flask-Flatpages
Demo at https://insomnux.pythonanywhere.com/
Posts are added in markdown format in the pages directory. Posts must have YAML metadata, followed by a blank line and an --- delimiter. Followed by the page or post body.
Example:
title: My post
date: 2018-12-12
descr: A new awesome post I wrote
tags: [post, new, awesome]
img: cutecat.jpg
imgalt: Photo of my cute cat
---
# Lorem Ipsum
Metadata tags used:
| tag | used for |
|---|---|
| title | post or page title |
| date | publication date - mandatory for posts |
| descr | page or post description |
| tags | tags for the post |
| img | filename of a picture uploaded in static/pictures |
| imgalt | alt property for picture (required) |
| static | static: True signifies that an article is a post, not page |
- Displays post list by post date in
$HOSTNAME/articles/$POSTNAME- ex: insomnux.pythonanywhere.com/articles/dolor-sin-amet/ - Static pages (yaml matter:
static: True) in$HOSTNAME/$PAGENAME- ex: insomnux.pythonanywhere.com/about - Tags support
- Contact form with Flask-WTF and Flask-Mail
- Code highlighting with Pygments
- Tutorials:
paginate.py: Using Flask to build static blog builder • archive.org copy- Logo: pigment/fake-logos
- CSS framework: Milligram - A minimalist CSS framework
