本文是关于Freemind.386的介绍,基于Freemind修改.

Freemind.386是我为Hexo编写的一个开源主题。该主题基于Freemind修改,样式替换为BOOTSTR.386

安装

  1. 安装主题:

    $ git clone git@github.com:blackshow/hexo-theme-freemind.386.git themes/freemind
    
  2. 安装 hexo-tag-bootstrap (可选):

    $ npm install hexo-tag-bootsrap --save
    
  3. 安装 hexo-generatr-search (可选):

    $ npm install hexo-generator-search --save
    
  4. 创建页面
    Freemind.386 预先定义了 Categories(分类)、Tags(标签) 和 About(关于)页面,要使用它们,你需要先在你的博客的 source 目录中添加相应页面。
    例如,要创建 Categories 页面,在终端上:

    1
    2
    $ cd /path/to/hexo/
    hexo n page categories

    然后编辑 source/categories/ 下的 index.md

启用

修改 _config.yml 文件里的 theme 选项为 freemind.386 即可。

配置

freemind.386/_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
slogan: "Keep and carry on."
#菜单
menu:
- title: Archives
url: archives
intro: "All the articles."
# icon: "fa fa-archive"
- title: Categories
url: categories
intro: "All the categories."
# icon: "fa fa-folder"
- title: Tags
url: tags
intro: "All the tags."
# icon: "fa fa-tags"
- title: About
url: about
intro: "About me."
# icon: "fa fa-user"
#友情链接
links:
- title: Freemind
url: https://github.com/wzpan/hexo-theme-freemind
intro: "Freemind's Github repository."
icon: "fa fa-github"
- title: BOOTSTRA.386
url: https://github.com/kristopolous/BOOTSTRA.386
intro: "BOOTSTRA.386's Github repository."
icon: "fa fa-github"
- title: Freemind.386
url: https://github.com/blackshow/hexo-theme-freemind.386
intro: "Freemind.386's Github repository."
icon: "fa fa-github"
- title: "My Github"
url: http://www.github.com/blackshow
intro: "My Github account."
icon: "fa fa-github"
# - title: "My LinkedIn"
# url: http://www.linkedin.com/in/xxx
# intro: "My Linkin account."
# icon: "fa fa-linkedin"
widgets:
- search
- category
- tagcloud
- recent_posts
- links
rss:
fancybox: true
favicon: favicon.png
duoshuo_shortname:
# Analytics
google_analytics:
enable: false
siteid:
baidu_tongji:
enable: false
siteid:
# search
#swiftype_key: ZP2ZSuHgipSZfRyU8uTR

Front-Matter

Freemind 主题额外提供了一些新的 front-matter 的选项,利用这些选项可以更好的装饰你的文章。

  • description - 在文章顶部插入一段简短的摘要信息(本文顶部就有)
  • feature - 为文章列表页面加入缩率图
  • toc - 生成 table of contents,就是右侧的文章目录树

示例:

Front-Matter
1
2
3
4
5
6
7
8
title: Freemind.386中文说明
date: 2015-11-25 10:56:20
description: 这篇文章是关于Freemind.386的介绍.
categories: code
tags: hexo
toc: true
#feature: http://blackshow.me/favicon.png
---

最后感谢 Freemind 的作者 HaHackBOOTSTR.386 的作者 Chris McKenzie

Comments

⬆︎TOP