Semantic UI blog template with backend in Python and Flask. Has a subscription block with a mail server, in-house full-text search engine and top-5 section. Shiba-Inu logos are made via Illustrator and cannot be used without permission.
This blog was initially made as a final project for the Harvard University CS50 programming course.
Post example:
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Download the repository manually or run:
$ git clone https://github.com/joliejuly/blog.git
Files should be installed as a package:
$ cd blog
$ export FLASK_APP=blog
$ export FLASK_DEBUG=true
$ pip3 install -e .
$ flask run
For further information check Flask documentation – http://flask.pocoo.org/docs/0.12/patterns/packages/
Access admin page via /admin_posts URL. Password is stored as app.password variable inside init.py module. Change it and store as an environment variable for security purposes.
Text editor for posts – Tiny MCE
This blog has a subscription feature, which runs using flask_mail server. It's all set up. Inside init.py module insert your mail settings:
app.config['MAIL_SERVER'] = 'smtp.yourhost.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_USE_SSL'] = True
app.config['MAIL_USERNAME'] = "username@yourhost.com"
app.config['MAIL_PASSWORD'] = "password"
Mail is sent asynchronously.
Blog has an in-house full-text search engine, built using FTS4 SQLite extention. You can find not only keywords, but sentences and phrases.
Slugify function allows you to dynamically generate urls like "how-to-choose-your-shiba-inu". It also supports cyrillic headers – they are translated into latin alphabet.
- Flask
- SQLite3
- Semantic UI
- Julia Nikitina - joliejuly
This project is licensed under the MIT License - see the LICENSE.md file for details This license is not covering illustrations and logos – copyrighted and restricted use without permission.