1 Star 1 Fork 0

uncle-lu / oub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 3.11 KB
一键复制 编辑 原始数据 按行查看 历史
uncle-lu 提交于 2020-03-11 19:54 . V2.0

OUB 静态博客生成器

  • 支持使用Markdown编写博客
  • 完美支持Letax数学公式
  • 自动生成目录
  • 支持文章标签分类
  • 自动生成分类标签页
  • 文章内自动根据标题生成目录

Quick Start

  • pip install python-markdown-math pygments jinja2
  • python oub.py

目录结构

oub
├── html
│   └── .git
├── oub.py
├── plugin
├── source
│   ├── css
│   ├── font
│   ├── js
│   └── picture
└── template
    ├── base.html
    ├── index.html
    ├── List.html
    └── post.html

如何使用

打开post.json修改相应值

post.json中path为md目录 link为友链 post为文章信息

注意:

  • template中index.html为首页模板.List为分类列表模板.post为文章模板.
  • post.json中为项目的设置,增加文章需在文件中添加相应元素

更新

V2.0 2020-03-11

  • 美化页面
  • bootstrap升级最新版
  • 新增json,使得修改文章信息更方便

V1.2 2020-03-10

  • 删除Latex支持的库
  • 修改Nav栏的逻辑
  • 修改静态文章的存储目录
  • 增加Tags的列表
  • 增加对不同Tags的文章的分类页面
  • 增加自定义左侧栏的功能

V1.1 2017-10-11

  • 加入支持Latex的库.
  • 美化页面,修改了模板中Top按钮.
  • 加入每次渲染会完全修改html/source内的文件.

V1.0 2017-10-10

  • 支持仅使用Markdown编写博客
  • 完美支持Letax数学公式
  • 自动生成目录
  • 支持文章标签分类
  • 自动生成分类标签页

LICENSE

Copyright (c) 2020, uncle-lu

All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this

list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this

list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of the {organization} nor the names of its

contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Python
1
https://gitee.com/uncle-lu/oub.git
git@gitee.com:uncle-lu/oub.git
uncle-lu
oub
oub
master

搜索帮助