Giter Club home page Giter Club logo

ghost-blog-theme's Introduction

ghost-blog-theme

这是一个卡片式风格设计的 Ghost 博客主题。

特性

  • 卡片式风格的文章卡片
  • 沉浸式的文章阅读体验
  • 清晰明了的首页文章信息统计
  • 漂亮的技能雷达图和文章标签词云图以及文章年度数量统计图
  • 程序员风格的个人信息页面展示
  • 极致简单的使用和一体化的配置
  • 支持代码高亮

下载

首先,当你阅读到这里的时候,你已经拥有了自己的 Ghost博客,你可以下载稳定分支 master 的代码,也可以使用 git命令直接下载,命令如下:

git clone https://github.com/luokangyuan/ghost-blog-theme.git

配置

增加动态路由

修改配置文件 /var/www/ghost/content/settings$ vim routes.yaml

routes:
  /about/me/: about-me
  /articles/classification/: articles-classification
  /articles/file/: articles-file
  /recard/list/people/: recard-list-people
  /friend/ship/: friend-ship

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

后台新增接口验证信息

Integrations新增一个theme用于接口认证,修改主题中的/assets/js/config.js中的keyurl

/** 访问接口配置*/
const api = new GhostContentAPI({
    url: 'http://localhost:2370',
    key: '3ca5b1a638723b78f35b7d4a07',
    version: "v3"
});

image-20200130174405379

修改主题中的其它信息

主题中的/assets/js/config.js包含了主题所有的可配置的信息,根据自己的需求修改即可。

主题部分页面截图

首页

image-20200130175041296

文章分类页面

Xnip2020-01-30_18-06-38

赞助墙页面

Snip20200130_7

友情链接页面

Snip20200130_8

关于我页面

Snip20200130_10

ghost-blog-theme's People

Contributors

bcjz-code avatar luokangyuan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

hua2bei

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.