Giter Club home page Giter Club logo

flog's Introduction

Flog

一个简单的博客系统,由 Flask 驱动

功能特性

  • 集成后台管理页面
  • 完善的SEO优化
  • 可选的,集成第三方登录的内置评论系统
  • 支持接入Disqus, Google Analytics, 腾讯云对象存储
  • Docker 部署
  • Letsencrypt SSL证书
  • 自由更改主题色

Markdown 特性

Flog 的 Markdown 语法遵循 GitHub Flavored Markdown 规范,支持脚注、表格、文章目录、数字公式等。

此外,Flog 还支持图片排版,使用方法是将多个图片放在一起(不换行),将渲染为多列图片。例:

![](/images/image1.jpg) ![](/images/image2.jpg)
![](/images/image3.jpg) ![](/images/image4.jpg)

效果:

完整效果可见我的博文

博客的运行与部署

请移步本项目的Wiki页面

Flog 使用以下组件

License

本项目使用MIT License许可开源。

flog's People

Contributors

dependabot-support avatar dependabot[bot] avatar frostming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flog's Issues

docker file报错了

#RUN pdm -s postgres --prod
=> ERROR [ 6/10] RUN pdm sync -s postgres --prod 0.8s

[ 6/10] RUN pdm sync -s postgres --prod:
#0 0.687 Usage: pdm [-h] [-V] [-c CONFIG] [-v] [-I] [--pep582 [SHELL]]
#0 0.687 {add,build,cache,completion,config,export,import,info,init,install,list,lock,plugin,publish,remove,run,search,show,sync,update,use,venv}
#0 0.687 ...
#0 0.687 pdm: error: unrecognized arguments: -s postgres

这里报错了,是因为pdm更新了吗,不会用啊 ,哥,可以说下怎么改这行吗

页面全白

chrome浏览器,浏览一篇文章后,点击后退键,页面全白。

内置评论系统

由于小明的typlog disqus不可用,导致博客评论在墙内全部消失。自建评论系统终归要做。

  • 评论展示
  • 评论管理
  • 导入disqus评论
  • 第三方登录
  • 新评论通知

待定功能

  • 评论导出

创建文章问题

  1. 第一次创建文章后,应自动转为编辑接口
  2. 创建文章不能创建为草稿

显示pdm的版本不匹配

当我按照开发部署时,执行pdm sync 发生如下报错:
Lock file version is not compatible with PDM, install may fail, please regenerate the pdm.lock
[RequirementError]: The local path * does not exist.
Add '-v' to see the detailed traceback

ValueError: Unsupported insert value type: <class 'dict'>

当我按照开发部署时,执行到 pdm sync -d 报错如下:

[AUTO-MIGRATION] Legacy pdm 0.x metadata detected, migrating to PEP 621...
Traceback (most recent call last):
File "c:\users\vimin\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\vimin\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\Vimin.local\bin\pdm.exe_main
.py", line 7, in
File "c:\users\vimin.local\pipx\venvs\pdm\lib\site-packages\pdm\core.py", line 184, in main
return Core().main(args)
File "c:\users\vimin.local\pipx\venvs\pdm\lib\site-packages\pdm\core.py", line 130, in main
self.ensure_project(options, obj)
File "c:\users\vimin.local\pipx\venvs\pdm\lib\site-packages\pdm\core.py", line 100, in ensure_project
migrate_pyproject(options.project)
File "c:\users\vimin.local\pipx\venvs\pdm\lib\site-packages\pdm\cli\actions.py", line 691, in migrate_pyproject
do_import(project, str(project.pyproject_file), "legacy")
File "c:\users\vimin.local\pipx\venvs\pdm\lib\site-packages\pdm\cli\actions.py", line 547, in do_import
merge_dictionary(pyproject["tool"]["pdm"], settings) # type: ignore
File "c:\users\vimin.local\pipx\venvs\pdm\lib\site-packages\pdm\cli\utils.py", line 509, in merge_dictionary
target[key].extend(value)
File "c:\users\vimin\appdata\local\programs\python\python39\lib_collections_abc.py", line 1093, in extend
self.append(v)
File "c:\users\vimin\appdata\local\programs\python\python39\lib_collections_abc.py", line 1072, in append
self.insert(len(self), value)
File "c:\users\vimin.local\pipx\venvs\pdm\lib\site-packages\atoml\items.py", line 1348, in insert
raise ValueError(f"Unsupported insert value type: {type(value)}")
ValueError: Unsupported insert value type: <class 'dict'>

OS: window10
python: 3.9
pdm:version 1.6.2

No module named 'flask'`

为什么会提示没有flask呢

web_1    | pdm.exceptions.PdmUsageError: Unsupported shell: sh, please specify another shell via `--pep582 <SHELL>`
web_1    | Traceback (most recent call last):
web_1    |   File "/app/__pypackages__/3.9/bin/flask", line 5, in <module>
web_1    |     from flask.cli import main
web_1    | ModuleNotFoundError: No module named 'flask'
web_1    | Traceback (most recent call last):
web_1    |   File "/usr/local/bin/pdm", line 8, in <module>
web_1    |     sys.exit(main())
web_1    |   File "/usr/local/lib/python3.9/site-packages/pdm/core.py", line 219, in main
web_1    |     return Core().main(args)
web_1    |   File "/usr/local/lib/python3.9/site-packages/pdm/core.py", line 143, in main
web_1    |     print_pep582_command(self.ui, options.pep582)
web_1    |   File "/usr/local/lib/python3.9/site-packages/pdm/cli/actions.py", line 712, in print_pep582_command
web_1    |     raise PdmUsageError(
web_1    | pdm.exceptions.PdmUsageError: Unsupported shell: sh, please specify another shell via `--pep582 <SHELL>`
web_1    | Traceback (most recent call last):
web_1    |   File "/app/__pypackages__/3.9/bin/flask", line 5, in <module>
web_1    |     from flask.cli import main
web_1    | ModuleNotFoundError: No module named 'flask'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.