Coder Social home page Coder Social logo

thousandsunny's Introduction

ThousandSunny

在阅读了R菊苣的pyprint和MartianZ的MartianZ-BLOG的代码后,自己尝试写的一个渣博客。

博客使用tornado+jinja2+sqlalchemy完成博客搭建,采用sqlite作为数据库存储文章友链等数据,博客的主题修改自jekyll-minimal-theme。后台使用bootstrap框架搭建,可以添加、删除和编辑文章及友链。

博客里的一些命名来自《One Piece》

Installation

克隆项目到本地并进入文件夹

git clone https://github.com/Luffin/ThousandSunny.git
cd ThousandSunny

安装所需第三方Python库

tornado
jinja2
sqlalchemy

也可以通过pip install -r requirement.txt来安装这些库

注意(写在运行前):

GoingMerry文件夹中的settings.py文件夹中可以修改

  • 博客名字
  • 个人邮箱
  • 数据库名字
  • 数据库路径
  • 首页显示文章数
  • 文章索引页面的文章显示数量

其中的COOKIE_SECRET要自己修改并妥善保管

可以使用python GoingMerry/cookie_secret.py来生成自己的cookie签名密钥

运行程序

python GoingMerry/creat_db.py
python main.py

TODO

响应式布局

添加代码块的高亮、行标、复制显示原文的插件

滚动加载图片而不是一次性全部载出

网页源码多余空格问题

添加文章修改时间

thousandsunny's People

Contributors

luffin avatar

Watchers

 avatar  avatar

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.