设置next主题

设置next主题
Otherisland总结
- 打开博客根目录Blog文件夹,右键Git Bash,输入如下代码将next主题下载到目录Blog/themes:ps: 第一步有问题的:
1
git clone https://github.com/theme-next/hexo-theme-next themes/next
改为ssh试试:1
git clone [GitHub - theme-next/hexo-theme-next: Elegant and powerful theme for Hexo.](http://link.zhihu.com/?target=https%3A//github.com/theme-next/hexo-theme-next) themes/next
1
git clone [git@github.com](mailto:git@github.com):next-theme/hexo-theme-next.git themes/next
- 打开
D:\Blog
下的_config.yml(称为站点配置文件),修改主题(注意冒号后都要有空格):主题语言主要是看你的themes/next/language中的简体中文是 zh-CN 还是 zh-Hans1
2
3
4
5
6
7
8
9
10
11
12
13# Site
title: Other'island #标题
subtitle: ''
description: 选择有时候比努力更重要 #简介或者格言
keywords:
author: Otherisland #作者
language: zh-CN #主题语言
timezone: Asia/Shanghai #中国的时区
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next #主题改为next
next主题有四种,如下图依次为Muse、Mist、Pisces、Gemini(反正我没看出来后两个有什么区别)
我选的是Gemini,打开目录Blog/themes/next/下的_config.yml(称为主题配置文件),只要将你选的主题前的#删除就行了:回到根目录打开Git Bash,输入如下三条命令:1
2
3
4
5# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini #这是我选的主题完成后1
2
3hexo clean
hexo g
hexo dhexo s
查看部署情况
部署没问题登录自己的域名查看部署情况Otherisland.xin
ps: 部署到github上可能会有延迟,需要等待