https://github.com/zerasul/blask
Blog Engine based on Flask
https://github.com/zerasul/blask
blog blog-engine flask hacktoberfest python site-generator
Last synced: about 1 year ago
JSON representation
Blog Engine based on Flask
- Host: GitHub
- URL: https://github.com/zerasul/blask
- Owner: zerasul
- License: gpl-3.0
- Created: 2018-03-03T02:44:57.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-01-01T12:21:09.000Z (over 2 years ago)
- Last Synced: 2024-11-16T03:17:03.822Z (over 1 year ago)
- Topics: blog, blog-engine, flask, hacktoberfest, python, site-generator
- Language: Python
- Homepage: https://getblask.com/
- Size: 606 KB
- Stars: 41
- Watchers: 6
- Forks: 28
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# BLASK
[](https://github.com/zerasul/blask/actions/workflows/ci.yml) [](https://coveralls.io/github/zerasul/blask?branch=master) [](https://sonarcloud.io/dashboard?id=blask-project-key)[](https://badge.fury.io/py/Blask) [](https://pepy.tech/project/blask) [](https://hub.docker.com/r/zerasul/blask) 
Blask is a blogging engine based on [Flask](http://flask.pocoo.org/). Blask uses Markdown syntax to create and render
the contents of blog posts.
Blask uses the Jinja2 template engine to render the web templates.
To install Blask, use ```pip```:
```pip install blask```
or download the source code:
```git clone https://github.com/zerasul/blask/```
After downloading you need to create a ```settings.py``` file:
```python
templateDir = "templates"
postDir = "posts"
defaultLayout = "template.html"
staticDir = "static"
title = "Blask | A Simple Blog Engine Based on Flask"
errors= { 404: "404"}
```
You can also use an environment variable to set the settings:
```bash
export BLASK_SETTINGS=settings
```
To Run Blask, use the following Code:
```python
from blask import BlaskApp
import settings
if __name__ == '__main__':
b = BlaskApp(templateDir=settings.templateDir, postDir=settings.postDir
, defaultLayout=settings.defaultLayout,
staticDir=settings.staticDir, title=settings.title, errors={404:'404'})
b.run()
```
You can use the Blask Command Line Tool to run the site:
```bash
blaskcli run --port 4444 #sets the port to 4444
```
For more information, see the [Blask web page](http://getblask.com/). Also, you can subscribe to our [Mailing List](https://www.freelists.org/archive/blask_mail_list).
---
You can see the [Code of Participation](https://www.mozilla.org/en-US/about/governance/policies/participation/) of this project.
Blask is Open Source under the [GPL 3.0](LICENSE) License