https://github.com/henryhuang/hexo-theme-polarbearsimple
A Hexo theme.
https://github.com/henryhuang/hexo-theme-polarbearsimple
Last synced: about 1 month ago
JSON representation
A Hexo theme.
- Host: GitHub
- URL: https://github.com/henryhuang/hexo-theme-polarbearsimple
- Owner: henryhuang
- License: mit
- Created: 2017-07-09T08:13:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T13:19:41.000Z (over 5 years ago)
- Last Synced: 2024-05-20T09:23:52.991Z (11 months ago)
- Language: CSS
- Homepage:
- Size: 198 KB
- Stars: 32
- Watchers: 1
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hexo-themes - henryhuang/hexo-theme-polarbearsimple
README
# hexo-theme-polarbearsimple
修改自 [hexo-theme-polarbear](https://github.com/frostfan/hexo-theme-polarbear),主要使用了 Archive 直接作为首页。
[在线预览 Demo](https://huangyijie.com)
## 安装使用(Installation)
```
$ npm install hexo-renderer-scss --save
$ git clone https://github.com/henryhuang/hexo-theme-polarbearsimple themes/polarbearsimple
```修改(Change) polarbear/config.yml `theme: polarbearsimple`
```
# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: polarbearsimple# 在归档页面显示所有文章 (Show all articles at archive page.)
# 需要安装(Need to install) hexo-generator-archive 插件支持
archive_generator:
per_page: 0
yearly: false
monthly: false
daily: false
```## 添加 Algolia搜索
添加 hexo-algoliasearch 插件
```
npm install --save hexo-algoliasearch
```在网站的**_config.yml**里配置:
```
algolia:
appId: ""
apiKey: ""
adminApiKey: ""
chunkSize: 5000
indexName: ""
fields:
- content:strip:truncate,0,500
- excerpt:strip
- permalink
- cover
- slug
- tags
- categories
- title
```