主题简介

MiHo 是一款单栏响应式的Hexo主题;这里以Miho主题为例,更多官方主题

安装主题

1
$ git clone https://github.com/WongMinHo/hexo-theme-miho.git themes/miho

MiHo 主题需要Hexo 3.0或以上版本,请先升级。

1
2
cd themes/miho
git pull

站点配置

1.启用主题

站点配置文件_config.yml在hexo根目录下。找到theme,注意有空格

1
`theme: miho`

2.网站基本配置

查看更多

3.jsonContent 配置

生成站点文章静态数据,用于站内搜索。

1
npm install hexo-generator-json-content --save

详细的配置请查看hexo-generator-json-content

主题配置

编辑主题配置文件,themes/miho/_config.yml。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# hexo-theme-miho
# https://github.com/wongminho/hexo-theme-miho
# Favicon of your site | 网站icon
favicon: /favicon.ico
# Header
# Keywords of your site | 网站关键字
keywords: Iris
# Head headline | 头部标题
header_title: Iris
# Head description | 头部描述
header_description: Keep walking
# Link to your logo | logo地址
logo: images/author.jpg
# Link to your banner_img | 首页banner图地址
banner_img: images/banner.jpg
# Menu setting | 菜单设置
# name: Font Awesome icon | Font Awesome 图标
# title: Home Title | 标题
# url: //minhow.com Url, absolute or relative path | 链接,绝对或相对路径
# target: true Whether to jump out | 是否跳出
menu:
home:
title: Home
url: /
target: false
archive:
title: Archives
url: /archives
target: false
user:
title: About
url: /
target: false
# Social setting, use to display social information | 社交设置,用来展示社交信息
# name: Font Awesome icon | Font Awesome 图标
# title: Home Icon title | 图标标题
# url: //minhow.com Url, absolute or relative path | 链接,绝对或相对路径
# target: true Whether to jump out | 是否跳出
social:
home:
title: Iris
url: //irisjiao.github.io
target: true
github:
title: Github
url: //github.com/Irisjiao
target: true
weibo:
title: Weibo
url: //weibo.com/u/2376532325
target: true
#twitter:
#title: Twitter
#url: //twitter.com/huangminhow
#target: true
#qq:
#weixin:
#snapchat:
#telegram:
#mail:
#facebook:
#google:
#linkedin:
# Content
# Excerpt length | 摘录长度
excerpt_length: 190
# Excerpt link | 摘录链接
excerpt_link: more>>
# New window open link | 新窗口打开文章
open_new_link: false
# Article default cover picture,size:350*150 | 文章默认封面图,尺寸:350*150
cover_picture: images/banner.jpg
# Open background particles | 开启背景粒子
open_bg_particle: false
# Open animation in homepage and head | 开启主页及头部动画
open_animation: true
# Article
# Open toc | 是否开启toc
toc: true
# Style customization | 样式定制
style:
# Main color tone | 主色调
main_color: '#0cc'
# Comments | 评论
# 畅言,输入appid和appkey
changyan_appid: false
changyan_appkey: false
# disqus
disqus: false
# Analytics | 分析
# 站长分析,输入站点id
cnzz_analytics: false
# 百度分析,输入key值
baidu_analytics: false
# google analytics | google分析
google_analytics: false
# Footer
# Access statistics | “不蒜子”访问量统计
access_counter:
on: true
site_uv: 总访客数:
site_pv: 总访问量:
# Copyright Information | 版权信息
copyright: 2017 MinHow

最后更新: 2017年09月14日 11:09

原始链接: http://irisjiao.github.io/2017/09/13/Hexo主题/