美文网首页
Hexo修改主题(Archer)

Hexo修改主题(Archer)

作者: yiming1012 | 来源:发表于2019-08-07 17:01 被阅读0次

    简介

    最近,基于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

    相关文章

      网友评论

          本文标题:Hexo修改主题(Archer)

          本文链接:https://www.haomeiwen.com/subject/ajjodctx.html