一个简单的博客系统,由Flask驱动
- 安装 pipenv
$ pip install pipenv
- 准备工作
$ pipenv install
$ pipenv install -d
# 生成翻译文件
$ pipenv run make compile
# 升级DB
$ pipenv run flask db upgrade
- 启动服务器
$ FLASK_DEBUG=True pipenv run flask run
成功后,访问http://localhost:5000查看结果
前往$your_domain/admin
使用账号admin
密码admin
(默认)登录,然后就可以开始写文章了。
前往$your_domain/admin/setting
配置页更改密码及其他设定。
Flog的Markdown语法遵循GitHub Flavored Markdown规范,支持脚注、表格、文章目录、数字公式等。
此外,Flog还支持图片排版,使用方法是将多个图片放在一起(不换行),将渲染为多列图片。例:
![](/images/image1.jpg) ![](/images/image2.jpg)
![](/images/image3.jpg) ![](/images/image4.jpg)
效果:
完整效果可见我的博文。
- CSS and JS framework: Bootstrap4
- Article CSS: yue.css
- Mardown renderer: Marko
- Markdown editor: Simple MDE
- Picture preview: Photoswipe
本项目使用MIT License许可开源。