Python Simple Blog is a simple Flask blog system based on markdown files which can be used both as an app or as a static site builder.
This is a WIP and may get some changes. Use it on your own risk!
- Clone the repository:
git clone https://github.com/mamal72/python-simple-blog
- Install dependencies:
[sudo] pip install flask markdown
- Serve the blog:
./runner serve
You can check the posts
directory to find out how you should write your posts.
- Clone and install the script as mentioned above.
- Set your hostname (Sth like
example.com
) inconfig.json
file. - Execute
./runner build
. - Copy|Upload the files in the
dist
direcotory to your host or server.
There is a config.json
file which holds most system configurations.
- debug: Flask
debug
. Useful for debug and development. - host: Flask's
SERVER_NAME
. It's required if you want to use it as a static site builder. (To create URLs) - title: Blog title.
- description: Blog description.
- author: Blog author.
- social: Twitter, Facebook and Github usernames of author. Used in the footer of the blog.
- post: Posts configurations and options:
- excerpt_length: Number of posts excerpt words. (short part of the post)
- words_count: Show posts words count in the blog.
- Create and distribute pip package
- Make the template more SEO friendly
- Find a good solution for contact form that works in static mode too
- Pagination
- Add some date parsing library
- YOUR AWESOME IDEAS! Fill an issue
Fill issues or send pull requests. I'll check them ASAP.