简介
最近,基于Win10+Hexo+Github搭建了个人博客,但是主题比较朴素,于是决定根据Hexo官网提供的主题进行设置。
安装部署
- 进入
Hexo
官网https://hexo.io/themes/ 下载自己喜欢的主题
Themes
- 根据官网提供安装步骤,在所建博客目录blog下点击鼠标右键进入
Git Bash
客户端,执行命令:
npm i hexo-generator-json-content --save && npm i --save hexo-wordcount && git clone https://github.com/fi3ework/hexo-theme-archer.git themes/archer --depth=1
- 将配置文件
_config.yml
中的theme配置改为:archer
theme:archer
- 在配置文件
_config.yml
最后添加如下配置:
jsonContent:
meta: true
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: true
excerpt: false
categories: true
tags: true
- 进入
D:\blog\themes\archer
目录下配置_config.yml
文件,里面的图片地址为相对路径,你可以将需要使用的图片放到下面目录中:D:\blog\themes\archer\source\intro
config.yml
- 通过命令提交:
hexo d -g
,看到效果图如下:
GitHub
网友评论