hexo主题配置详细说明

describe _config.yml(theme)

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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------
# Header Menu
menu:
Home: /
Archives: archives
Categories: categories
Tags: tags
About: about
## 按照以下操作进行分类、标签
## you can create `tags` and `categories` folders in `../source`.
## And create a `index.md` file in each of them.
## set `front-matter`as
## layout: tags (or categories)
## title: tags (or categories)
## ---
rss: /atom.xml
since: 2013
# Set default keywords (Use a comma to separate)
keywords: ""
# Put your favicon.ico or avatar.jpg into `hexo-site/themes/hiker/source/` directory.
avatar:
enable: true
border: true
width: 124
height: 124
top: 0
url: css/images/cute.jpg (public文件夹下)
# Homepage
# eg. home_background_image: [css/images/home-bg.jpg, http://t.cn/RMbvEza]
home_background_image:
enable: true
url: [css/images/poke.jpg, http://t.cn/RMbvEza] (public文件夹下)
home_logo_image:
enable: false
border: false
url: css/images/homelogo.jpg (public文件夹下)
# AboutPage background
about_big_image: css/images/poke.jpg (public文件夹下)
# Archive pagination
archive_pagination: true
# Content
fancybox: true
# Sidebar
sidebar: right
widgets:
- category
- tag
- tagcloud
- archive
- recent_posts
# Search
search:
insight: true # you need to install `hexo-generator-json-content` before using Insight Search
swiftype: # enter swiftype install key here
baidu: false # you need to disable other search engines to use Baidu search, options: true, false
# comment ShortName, you can choose only ONE to display.
duoshuo_shortname: niniY
disqus_shortname:
# Code Highlight theme
# Available value:
# default | normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: default
# Article theme color
# Available value:
# random | orange | blue | red | green | black
theme_color: random
# display widgets at the bottom of index pages (pagination == 2)
index_widgets:
# - category
# - tagcloud
# - archive
# widget behavior
archive_type: 'monthly'
show_count: true
# Google Webmaster tools verification setting
# See: https://www.google.com/webmasters/
google_site_verification:
baidu_site_verification:
qihu_site_verification:
# Miscellaneous
google_analytics:
gauges_analytics:
baidu_analytics:
tencent_analytics:
twitter:
google_plus:
fb_admins:
fb_app_id:
# Facebook SDK Support.
# https://github.com/iissnan/hexo-theme-next/pull/410
facebook_sdk:
enable: false
app_id: #<app_id>
fb_admin: #<user_id>
like_button: #true
webmaster: #true
# CNZZ count
cnzz_siteid: 1260716016
# busuanzi count
# http://busuanzi.ibruce.info/
show_busuanzi_view_counts: true

Powered by Hexo and Hexo-theme-hiker

Copyright © 2013 - 2017 (ˇˍˇ) ~ All Rights Reserved.

(´▽`)ノ | (゚▽゚*)