GitXplorerGitXplorer
L

peach-blog

public
58 stars
9 forks
8 issues

Commits

List of commits on branch master.
Verified
455f97ffafa0ec2629658de526ec57b51286f386

Delete .DS_Store

LLeetaoGoooo committed 2 years ago
Unverified
49a861bcfb8d7ab036153091c48718e165b3ec72

feat: docker support

LLeetaoGoooo committed 3 years ago
Unverified
d47ed94320f85705f28b2c6a4c9781673bed0f99

refactor badge

LLeetaoGoooo committed 4 years ago
Unverified
b2a816d9364dbcc828fee95f4835bcfbd5756d41

feat courses

LLeetaoGoooo committed 4 years ago
Unverified
c4fab467a85d6953a26ac6f93828923f2f742475

[fix]邮件格式异常

LLeetaoGoooo committed 4 years ago
Unverified
f62da8fff816c798a304195ed6960a2484d7526f

[fix]评论异常

LLeetaoGoooo committed 4 years ago

README

The README file for this repository.

Peach-Blog

Build Status codecov

Peach Blog 是基于 Flask 的博客平台,目的是为了提供一种更加纯粹的内容写作与发布平台,通过几个简单命令,可以帮助用户无痛的从 Hexo 切换到 Peach Blog

Features

  1. support export hexo's posts into database
  2. support export database's posts into hexo-format markdown file
  3. add new dashboard base on flask-admin
  4. add markdown support to flask-admin

Screenshots

Usages

environment

pip install -r requirements.txt

init database

before you execute following lines,make sure you have already create database

flask shell

you'are supposed to see, something like follow one:

Python 3.6.5
App: app [development]
Instance: path\to\instance

then

>>> from app import db
>>> db.create_all()
# create super user
>>> from app.models import User
>>> user = User(user_name='your name',password='your password', level=1)
>>> db.session.add(user)
>>> db.session.commit()

export hexo's posts into database

if you want to export hexo posts into database, change the value of config.py on line 14 (where the hexo's posts store),then

flask hexo g 

clean the posts,just use flask hexo c simplely

create log dir

mkdir logs

run the server

flask run

export database's posts into hexo-format markdown files

login in peach-blog admin, and step into post list pages, and then (see the picture)

the expoted post will generate under the directory where you set in config.py

About Dev

欢迎各种 PR.