hexo-theme-believe 文档

        

2017-02-02


hexo-theme-believe

这个主题取名believe.希望选用这个主题的人永远相信美好的事情即将发生。

Usage

  1. In the root directory:

    1
    2
    $ git clone https://github.com/th720309/hexo-theme-believe.git
    $ npm install --save hexo-renderer-sass
  2. Change the theme property in the config.yml file.

    1
    2
    # theme: landscape
    theme: hexo-theme-believe
  3. Run: hexo server

##Configuration


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
# basic
title: believe
subtitle: 笔直向前,说到做到
favicon: /favicon.ico
#logo
logo: http://oct3pmpde.bkt.clouddn.com/timg.jpg
# duoshuo-comment
#duoshuo_shortname: th720309
highlight:
enable: true
line_number: false
auto_detect: false
tab_replace:
# nav #
nav:
首页: .
归档: archives
关于: about
项目: project
RSS: atom.xml
# baiduanalysis
#baiduanalysis:
# hexo-renderer-sass
node_sass:
outputStyle: nested
precision: 5
sourceComments: false
# Default post title
default_post_title: Untitled
# social
social:
github: https://github.com/th720309
weibo: http://weibo.com/th0527
twitter: https://twitter.com
facebook: https://facebook.com
footer: Powered by <a href="https://hexo.io/">Hexo</a> with Theme <a href="http://www.tianhao.site/blog">believe</a>

##Features


How to add comment field in your article?

编辑站点的 config.yml ,添加 duoshuo_shortname 字段,设置如下

# duoshuo-comment
    duoshuo_shortname: 此处为你的多说帐号
        

How to add baiduanalysis in your website?

# baiduanalysis(用于百度站长工具验证所有权的ID)
   (sample)baiduanalysis:  https://hm.baidu.com/hm.js?c0451e16533956173997b85f7a8de666

编辑站点的 _config.yml,添加

footer: 你要自定义的内容(支持HTML标签)
 # 举例:
# footer:  Powered by <a href="https://hexo.io/">Hexo</a> with Theme <a href="http://www.tianhao.site/blog">believe</a>