Coder Social home page Coder Social logo

caixw / gitype Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 10.0 1.18 MB

以 Git 作为数据源的博客系统

Home Page: https://caixw.io

License: MIT License

Go 96.63% HTML 0.77% Shell 0.43% CSS 0.01% Batchfile 0.59% AMPL 0.45% JavaScript 1.13%
blog blog-engine git go

gitype's Introduction

gitype's People

Contributors

caixw 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitype's Issues

性能优化

比如
*Etag头
*压缩文档内容
*SQL语句预编译

可定义的菜单

可在后台自定义菜单栏的内容,而不是像现在一样写死在代码里。

支持多个目录

通过命令行参数指定:typing server dir1 dir2,需要每个博客的端口设置等统一为相同的值。

优化 app.newPage 函数

未重新加载数据,理论上 app.page 中的大部分值都是一样,不需要每次都初始化。

多主题支持

通过 cookie 或是查询参数让用户可以动态切换主题。

增强搜索功能

  • tag: tagname 搜索标签名
  • series: seriesname 按塌题名称搜索
  • title: titletext 按标题内容搜索

添加预览模式

忽略 webhook 上的数据更新,仅关注本地的数据变更。

程序内置一个默认的主题

以下两种方式二选一:

  1. 内置一个主题,在用户未指定主题的情况下使用;
  2. 内置主题,即在安装时输出到数据目录;

添加一个归档页面

archives.html

按年份或是月份进行分类,通过 meta/config.yaml 改变分类方式,所有内容一页显示完。

自定义页面标题

像存档页等的固定标题可自定义;
文章页等的动态标题,也可以自定义,比如 "%s xx" 这种格式。

添加语法高亮

选一款语法高亮插件或是自己写一款与当前主题相配的插件。

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.