A quiet editorial Hexo theme with a fixed visual sidebar, a lighter homepage, and a calmer archive timeline.
Live demo: hsad.xyz
Repository: watanabe-hsad/hexo-theme-hsad
- Fixed visual sidebar with a soft image backdrop
- Cleaner homepage focused on recent posts and short previews
- Archive pages separated into a true time-based directory view
- Category and tag overview pages with simpler indexing
- Responsive mobile drawer for navigation
- Optional sponsor block in the footer
- Built with local Pug templates and a single theme stylesheet for easier editing
cd your-hexo-site
git clone https://github.com/watanabe-hsad/hexo-theme-hsad.git themes/hsadSet the theme in your site config:
theme: hsadThen generate or serve your site as usual:
npx hexo clean
npx hexo generateFor category and tag index pages, create these files in your Hexo site:
source/categories/index.md
---
layout: categories
title: 分类
type: categories
---source/tags/index.md
---
layout: tags
title: 标签
type: tags
---If you want a friend-links page, you can also use:
source/links/index.md
---
layout: links
title: Links
links:
- url: https://example.com
avatar: https://example.com/avatar.png
name: Example
blog: Example Blog
desc: A short line here
---In your Hexo site's main _config.yml, make sure these common options are set in a way that fits your site:
language: zh-CN
date_format: YYYY-MM-DD
permalink: :year/:month/:day/:title/Most site-specific text lives in _config.yml.
Important keys:
brand_namebrand_subtitlesidebar_noteavatarsidebar_backgroundsocialfooter.support
Example:
brand_name: hsad
brand_subtitle: 写一点留给夜里的话
sidebar_note: 用很少的话介绍自己,剩下的交给文章。
social:
- name: GitHub
url: https://github.com/yourname
- name: E-Mail
url: mailto:you@example.com- The theme ships with default
avatar.jpgandbackground.pngundersource/images/. - If your site provides files with the same paths, Hexo can override them with your own assets.
- The footer sponsor block is disabled by default in this standalone repo.
- The preview screenshot used for the Hexo theme listing is kept in the repository, but the README intentionally links to the live demo instead of embedding a site screenshot.
Theme source structure:
layout/: page templateslayout/_partial/: shared building blockssource/css/hsad-theme.css: all visual stylessource/js/hsad-theme.js: mobile drawer behavior_config.yml: theme-level defaults
If you want to customize it heavily, the easiest starting points are:
- Change copy and links in
_config.yml - Adjust spacing, typography, and colors in
source/css/hsad-theme.css - Refine structure in the Pug templates under
layout/