You can download the project to your local machine via git clone or by downloading a zip file. Create a folder named hexploit under the /themes directory of your blog, and place the project there (ensure the directory structure matches the one shown in the GitHub repository; git clone is recommended!).
Open the config file in your blog directory (both the root and theme directories have config files—be careful not to confuse them):
Change theme: landscape to:
theme: hexploitRun the following command in your blog directory (refer to online resources for details about npm and blog setup):
npm install hexo-generator-feed --saveOpen the config file in the blog directory and add the RSS configuration at the end:
feed:
type: rss
path: rss.xmlRun the following command in your blog directory:
npm install hexo-generator-search --saveOpen the config file in the blog directory and add the search configuration at the end:
search:
path: search.json
field: post
format: html
limit: 10000This theme supports three pages: categories, tags, and about.
Run the following commands in your blog directory:
hexo new page categorieshexo new page tagshexo new page aboutTake categories as an example. Open /source/categories/index.md and modify its content as follows:
---
title: categories
layout: categories
---Do the same for the other pages, replacing categories with tags and about.
Open /themes/hexploit/_config.yml:
menu:
- name: Home
url: /
- name: Archives
url: /archives
- name: Categories
url: /categories
- name: Tags
url: /tags
- name: About
url: /about
- name: RSS
url: /rss.xml
sidebar: # Sidebar
enable: true
widgets:
- search # Search
- notice # Notice
- categories # Categories
- tags # Tags
- links # Links
numlimit: # Limit the number of items shown in the sidebar
categories: 5
tags: 10
links:
- name: Baidu
url: https://www.baidu.com
notice: # Notice section content
enable: true # Set to true to enable, false to disable
content: "The blog is under optimization. Stay tuned for more content!" # Content displayed in the notice section
toc:
enable: trueYou can freely modify the order of the sidebar items or comment out unused items.
Modify your blog’s configuration file:
highlight:
enable: true
line_number: false
auto_detect: false
tab_replace: ''
wrap: true
hljs: true
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''The current theme uses atmo-one-dark, defined in highlight.css. You can customize it as needed.