A simple and elegant theme for Hexo.
Clone the theme repository into your Hexo project's themes
folder:
git clone https://github.com/tandc181123/hexo-theme-InkSerenity.git themes/InkSerenity
cd themes/InkSerenity
npm install
Modify the default scaffolds/page.md
file to include required metadata:
---
title: {{ title }}
layout: {{ title }}
current: {{ title }}
---
Manually create the following pages for all features to function properly:
- Categories
- Tags
- About
Run the following command for each page:
hexo new page <page-name>
Example for creating the categories page:
hexo new page categories
In the root _config.yml
file of your Hexo project, update the theme
setting:
theme: InkSerenity
To enable Utterances, configure it in the root _config.yml
file:
utterances:
repo: "<username>/<repo-name>" # Replace with your Github repository
issue_term: "pathname"
theme: "github-light"
Note: Utterances requires a valid Github repository to store comments.
To enable Google Analytics, configure your tracking ID in the root _config.yml
file:
google_analytics: G-XXXXXXXXXX # Replace with your tracking ID