使用Ekinosoba来打造hexo博客

  1. 1. 使用 Ekinosoba来打造hexo博客
    1. 1.1. 1.安装hexo
    2. 1.2. 2.安装Ekinosoba
    3. 1.3. 3.配置Ekinosoba和hexo

使用 Ekinosoba来打造hexo博客

1.安装hexo

确保您已经安装node.js和git

1
$ npm i hexo -g

测试安装:

1
$ hexo -v

2.安装Ekinosoba

1
2
3
4
$ pwd
# 在您想要搭建博客的目录里
$ cd themes
$ git clone https://github.com/oldhelps/ekinosoba.git

3.配置Ekinosoba和hexo

./__config.yml(站点配置文件)里改动:

1
2
3
4
5
6
# Site
title: Hexo #标题
subtitle: ''
author: John Doe #作者
language: en #语言
timezone: ''

themes/ekinosoba/__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
# navigation menu
menu:
- name: Home
slug: home
url: /
- name: Archives
slug: archives
url: /archives
- name: Categories
slug: categories
url: /categories
- name: Tags
slug: tags
url: /tags
- name: About
slug: about
url: /about

# widgets
widgets:
- about
- links
- categories
- tagcloud


# use url, not username
social:
- slug: github
url: https://github.com/oldhelps
# you can make many social links

#hero images
hero_image: 2.png # 图片路径
hero_title: 老帮帮的博客 # 标题
hero_subtitle: 老帮帮的博客。 # 副标题

author:
name: 老帮帮 #侧边栏用户名
bio : Tempora mutantur, nos et mutamur in illis ...djkadj #简介