Hexo修改主题(Archer)

2019-08-07  本文已影响0人  yiming1012

简介

最近,基于Win10+Hexo+Github搭建了个人博客,但是主题比较朴素,于是决定根据Hexo官网提供的主题进行设置。

安装部署

  1. 进入Hexo官网https://hexo.io/themes/ 下载自己喜欢的主题
    Themes
  2. 根据官网提供安装步骤,在所建博客目录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

  1. 将配置文件_config.yml中的theme配置改为:archer

theme:archer

  1. 在配置文件_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
  1. 进入D:\blog\themes\archer目录下配置_config.yml文件,里面的图片地址为相对路径,你可以将需要使用的图片放到下面目录中:D:\blog\themes\archer\source\intro
    config.yml
  2. 通过命令提交:hexo d -g,看到效果图如下:
    GitHub
上一篇下一篇

猜你喜欢

热点阅读