Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaywcjlove/hexoThemeKacper

hexo theme
https://github.com/jaywcjlove/hexoThemeKacper

Last synced: about 2 months ago
JSON representation

hexo theme

Awesome Lists containing this project

README

        

# hexoThemeKacper

这个是一个hexo.io 的主题,本人生性懒惰,所以主题基于 `landscape` 主题更改的。so...

## Preview

[JSLite.io](http://JSLite.io)

## Installation

### Install

``` bash
$ git clone https://github.com/jaywcjlove/hexoThemeKacper.git themes/hexoThemeKacper
```

**hexoThemeKacper requires Hexo 3.0 and above.**

### Update

``` bash
cd themes/hexoThemeKacper
git pull
```

### Enable

Modify `theme` setting in `_config.yml` to `hexoThemeKacper`.

## Usage

### Theme configuration example

`/themes/_config.yml` 说明

```python
# Header
menu: #导航栏连接
Home: /
API: /API
Tags: /tags
# Category: /category
Archives: /archives #/archives #归档页面URL 自定义页面标题: /自定义页面URL
About: /about
Github: https://github.com/JSLite/JSLite

rss: /atom.xml #rss地址 默认即可

#feed:
# type: atom #feed 类型 (atom/rss2)
# path: /atom.xml #rss 路径
# limit: 20 #在 rss 中最多生成的文章数(0显示所有)

#icon http://fontawesome.io/
#首页显示
article_index:
- title: 低廉学习成本低
content: 与jQuery有着类似的api,模仿jQuery的语法规范,并不是100%的覆盖。如果你会用jQuery,那么你也会用JSLite。
icon: icon-book
- title: 快执行并下载
content: JSLite通用库只有5-10k,没有大量的兼容代码,在先进浏览器里面跑起来没有负担。为了减小代码量,提高性能,组件再插件化,兼容iOS3+ / android2.1+。
icon: icon-bolt
- title: 为未来web做打算
content: 让中国再次和世界同步,拥抱现代浏览器。未来总会接触到移动端开发,还好移动端开发环境还不算恶劣。
icon: icon-lab
- title: Github # Github这里比较特殊
content: JSLite/JSLite # github 仓库地址,例如https://github.com/jaywcjlove/hexoThemeKacper 这里就填写 jaywcjlove/hexoThemeKacper
icon: icon-github-alt

# Content
excerpt_link: Read More #阅读更多的文字显示
fancybox: true #开启fancybox效果

# Miscellaneous #社交网络和统计连接地址
baidu_analytics: //hm.baidu.com/hm.js?fe2c7555911b8560db5e56121c5d5960
favicon: /css/favicon.ico
logo: /css/logo.png
```

### TAGS && Category && API && About

设置这三个菜单需要你在 `source` 建立三个页面

```
source/tags/index.md
source/category/index.md
source/API/index.md
source/about/index.md
```

#### tags

```
layout: tags
title: "tags"
---
```

#### Category

```
layout: category
title: "categories"
---
```

#### API

```
title: "JSLite.io"
date: 2015-04-05 05:37:40
type: "API"
---
```

#### About

```
title: "关于我"
date: 2015-04-02 01:36:59
description: "关于我"
type: "about"
---

前端开发工程师。敏捷实践者。目前就职于hotpu,生活在上海。


```

### 注意翻页

因为本主题没有做翻页的功能。所以在博客跟目录 `_config.yml` 文件中要设置 `per_page: 0` ,设置为 `0` 显示所有文章

```
per_page: 0
pagination_dir: page
```

### 多说评论

注册你自己的多说账号 [duoshuo](http://dev.duoshuo.com/docs/501e6ce1cff715f71800000d) 替换你在根目录`_config.yml` 中的 `duoshuo short_name` 的值,没有在里面设置

```
duoshuo_shortname: your short_name
```

## 协议
[MIT](/MIT-LICENSE)