Hexo-Theme

Hexo-Theme

My first hexo theme.

Welcome to Hexo!
I choose hexo-theme-archer as my theme.

Quick Start

Create a new theme

  1. In the root of Hexo Directory

    1
    $ 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
  2. Change _config.yml of Hex Directory, and theme is archer

1
theme: archer
  1. add supports of sidebar, change _config.yml of Hexo Directory
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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

More info:

set about page

  1. create a new page in Hexo Directory
    1
    hexo new page "about"
  2. add info to source/about/index.md
    1
    2
    3
    4
    5
    ---
    title: about
    layout: about
    ---
    description
  3. set in _config.yml of theme
    1
    2
    3
    about:
    enable: true
    image: '/intro/about-page.jpg'

set 404 page

More info please read in GitHub hexo-theme-archer

Posted on

2020-10-21

Updated on

2021-01-31

Licensed under

Comments