HexoBlog

hexo-theme-Annie — Hexo Blog Template

By Sariay

Annie is a Hexo blog theme for essay, poetry, and fiction writing. The README lists modules such as random header backgrounds, photo albums, comments, sharing, analytics, likes, table of contents, code highlighting, local search, and multilingual support.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

3 previews
Desktop homepage1 / 3
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 3

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-08View source

What stands out

A quick read of the recorded project description.

01

Random header backgrounds and post thumbnail backgrounds

02

Two homepage templates, with infinite loading for homepage posts

03

Category and tag pages query and display related posts by category or tag

04

Album page supports categorizing and searching images

05

Post page integrates modules such as comments, sharing, analytics, likes, table of contents, progress bar, and code copy

06

Supports MathJax mathematical formulas, color quote, and local search

Template Details

Annie is a Hexo blog theme that the README positions as a simple theme suited to literary content such as essays, poetry, and fiction. The theme provides two homepage templates, and homepage posts support infinite loading; the header uses random backgrounds, and posts can set a cover image that is used for homepage thumbnails and the article detail page header. Category and tag pages query and display related posts after a specified category or tag is clicked, and the album page supports categorizing and searching images. The post page includes modules such as related posts, comments, sharing, analytics, likes, reading progress and table of contents, code copy and language hints, and supports MathJax mathematical formulas and color quote. At the site level, it supports local search, Baidu/CNZZ/Google/Tencent analytics, and three languages: Simplified Chinese, Traditional Chinese, and English. The README provides steps for installation, site configuration, theme configuration, post cover setup, and theme updates, but does not specify the theme's specific version requirements, build artifacts, or production environment performance.

HexoBlog

Is it right for your project?

Use Cases

  • Building a Hexo personal blog focused on textual content such as essays, poetry, and fiction
  • Blogs that need an album page and want to find images by category or keyword
  • Sites that want to display related posts, comments, sharing, analytics, and likes modules on post pages
  • Blogs that need a Simplified Chinese, Traditional Chinese, or English interface and use local search

Suitable For

  • Authors who use Hexo to build blogs and prefer a literary, simple style
  • Blog maintainers who need modules such as albums, category/tag retrieval, and related posts
  • Users who wish to configure third-party services such as comments, analytics, and sharing themselves according to the README instructions

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Clone the repository into the themes directory via git clone, ensure the folder name is Annie, then change the theme field in the site _config.yml to Annie.

  2. 2

    Site search requires installing the hexo-generator-search-zip plugin, and adding search and local_search configurations to the site and theme _config.yml respectively.

  3. 3

    Code highlighting requires setting highlight's enable and line_number to true in the site _config.yml, and setting highlight_theme and code_copy in the theme configuration.

  4. 4

    Each post can specify a cover image path in the front matter using the cover field, used for homepage thumbnails and the article detail page header background.

  5. 5

    The README suggests running git pull in the themes/Annie directory to update the theme if no code has been modified, or downloading the source package for customization if many changes have been made.

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version under the MIT license in the public repository; the free scope is the code of this version and does not mean that external services or third-party assets are free.

Must comply with when using

  • Free use, modification, commercial use, and distribution of this version's code are permitted.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the complete MIT license notice.
  • The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.

Additional costs & items to verify

  • Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
  • External services such as domains, hosting, databases, payments, or AI may incur additional charges.
  • The comment module relies on third-party services gitalk, valine, and livere, and requires configuring the corresponding accounts or services yourself.
  • The sharing module relies on third-party services addThis, baiduShare, shareThis, and socialShare.
  • The analytics module relies on third-party services leancloud and busuanzi.
  • The post likes module relies on the leancloud service.
  • Site analytics relies on third-party analytics services such as Baidu, CNZZ, Google, and Tencent.
  • Site search requires additionally installing the hexo-generator-search-zip plugin.
  • The README states that rights related to other open-source resources referenced belong to their respective authors.
View Original Text Basis

Permission is hereby granted, free of charge

Original License Text

7. 文章评论模块:gitalk 、valine 、livere

Original README

8. 文章分享模块:addThis 、baiduShare 、shareThis 、socialShare

Original README

9. 文章统计模块:leancloud 、busuanzi

Original README

10. 文章点赞模块:leancloud

Original README

14. 站点分析模块:baidu_analytics 、cnzz_analytics 、google_analytics 、tencent_analytics:

Original README

第一步:安装 ```hexo-generator-search-zip```插件

Original README

(Relevant Rights Reserved by Them!)

Original README
https://github.com/Sariay/hexo-theme-Annie/blob/master/LICENSEhttps://github.com/Sariay/hexo-theme-Annie/blob/master/README.md

Compiled by DeepSeek based on repository license and README ·2026-10-08. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.

Project checks & description sources

Template Information

Source platforms
GitHub
Documentation and maintenance reference score
Partly documented · 68 / 100
Technologies
Hexo
Website type
Blog
How this score is calculated

Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.

What to verify for this project

Repository update recorded
2020-01-08
Screenshot last checked
2026-10-08

A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.

The catalog identifies Hexo as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.

Use a selection guide →

How this description was prepared

AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.

Review declaration: codex-user-requested-batch-review-20261017 · 2026-10-16

Inspect the recorded source material

SHA-256: 2a65bf6ed5d13ebea712facddc942747f21b7947580dcf0b2ae0b43515b3516a

2026-10-08T13:03:48.368Z

Source file / repository
# Annie theme
[![GitHub issues](https://img.shields.io/github/issues/Sariay/hexo-theme-Annie?style=for-the-badge)](https://github.com/Sariay/hexo-theme-Annie/issues)  ![GitHub top language](https://img.shields.io/github/languages/top/Sariay/hexo-theme-Annie?style=for-the-badge)  [![GitHub license](https://img.shields.io/github/license/Sariay/hexo-theme-Annie?style=for-the-badge)](https://github.com/Sariay/hexo-theme-Annie/blob/master/LICENSE)

Annie是一个简单的Hexo博客主题,如果你喜欢散文、诗歌、小说......那么它可能合你心意!  [☞预览-1](https://sariay.github.io/2019/03/12/相册主题Dream介绍/),[☞预览-2](https://sariay.github.io/hexo-theme-Annie/)

### Features

1. 文艺、优雅、简洁的博客主题
2. 页头随机背景+文章缩略图背景
3. 两种主页模板,主页文章无限加载
4. 分类页、标签页点击指定分类、标签后,查询并展示相关文章
5. 相册页可以分类、搜索图片
6. 相关文章模块:文章页展示与该篇文章相关的系列文章
7. 文章评论模块:gitalk 、valine 、livere 
8. 文章分享模块:addThis 、baiduShare 、shareThis 、socialShare 
9. 文章统计模块:leancloud 、busuanzi 
10. 文章点赞模块:leancloud
11. 文章阅读模块:toc目录、进度条、进度百分比
12. 文章代码模块:代码复制、代码语言提示、5种高亮主题([Refer & use Next' theme](https://github.com/iissnan/hexo-theme-next/))
13. 文章Markdown:支持数学公式(MathJax),color quote([Refer & use Minos' theme](https://github.com/ppoffice/hexo-theme-minos/blob/master/scripts/99_tags.js))
14. 站点分析模块:baidu_analytics 、cnzz_analytics 、google_analytics 、tencent_analytics:
15. 站点文章搜索:local search
16. 多语言支持:中文简体、中文繁体、英文

### Get started

### Installation

```bash
git clone https://github.com/Sariay/hexo-theme-Annie.git
```
然后,将站点目录下的`_config.yml`文件中的`theme`字段修改为Annie。

确保**themes**目录下存在名为Annie的文件夹(hexo-theme-Annie→Annie)

### Site config

原则上,你应该编辑站点目录下的`_config.yml`文件。

- [x] **语言支持**

```yml
# Site
title: SARIAY-Blog
subtitle:
description:
keywords:
author: Sariay
language:
timezone: 
```

设置`language`的值:`en | zh-CN |zh-TW`

- [x] **站内搜索**

第一步:安装 ```hexo-generator-search-zip```插件

```bash
$ npm install hexo-generator-search-zip --save
```

第二步:编辑站点目录下的`_config.yml`文件

```yml
# 添加下列参数

search:
  path: search.json
  zipPath: search.zip
  versionPath: searchVersion.txt
  field: post
  #field: post, page or all
```

第三步:编辑主题目录下的`_config.yml`文件

```yml
# 添加下列参数(若不存在),并将enable置为true!

# Local search
# Dependencies: https://github.com/flashlab/hexo-generator-search
local_search:
    enable: true
    # if auto, trigger search by changing input
    # if manual, trigger search by pressing enter key or search button
    trigger: auto
    # show top n results per article, show all results by setting to -1
    top_n_per_article: 2
```

- [x] **代码高亮**

基于hexo自身的代码块解析插件的特性,弃用[hexo-prism-plugin](https://github.com/ele828/hexo-prism-plugin),参考、使用next主题的代码风格。

1. `highlight、line_number`的值应为`true`

```yml
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: true
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace:
```

2. 设置`highlight_theme、code_copy`(主题目录的config.yml)

```yml
# post_code
# normal | night | night blue | night bright | night eighties
highlight_theme: night bright
code_copy:
    enable: true
```

### Theme config

你可以阅读文章 [《Annie主题使用说明》](https://sariay.github.io/2018/08/27/Annie主题使用说明/) 获取相关模块的信息,例如页头背景、相册、评论、文章点赞 !

### Post config

每一篇文章都可以设置一张特色图,该特色图将用于主页(文章缩略图)和文章详情页(页头背景)。

文章的模板样例如下,cover即为文章封面图的路径,你可以使用相对路径或绝对路径。

```markdown
---
title: {{ title }}
date: {{ date }}
cover: https://.../
categories: categories
tags: tags
---
```

### Theme update

如果你使用主题后,几乎未改动代码,那么可以使用下面的`命令行`更新主题。

```bash
cd themes/Annie
git pull
```

如果你使用主题后,自定义改动相当多的代码,推荐下载源码包以进行定制!

### Other questions

如果你有问题反馈:  [issues](https://github.com/Sariay/hexo-theme-Annie/issues) 						(请务必先于**issues**中寻找答案)

如果你喜欢该主题:  [star](https://github.com/Sariay/hexo-theme-Annie)						(**star**越多,更新的动力越大😂)

如果你想定制主题:  [fork](https://github.com/Sariay/hexo-theme-Annie/fork)						(当然,**Annie**亦期待你的贡献)

主题交流群如下,招募群主!(1023390049,口令ANNIE)

![主题交流群](https://github.com/Sariay/hexo-theme-Annie/blob/master/source/img/Annie_qq_qrcode.jpg)

### Contributor

欢迎各种形式的贡献。

### Todo

- [x] 评论功能
- [x] 文章目录
- [x] 文章点赞💗
- [x] 阅读计数
- [x] 相关文章
- [x] 相册模块
- [x] 站点分析统计[b421393](https://github.com/Sariay/hexo-theme-Annie/commit/b421393dd259809fadba119547fda4fcf2633f1f)
- [x] 文章分享功能[b421393](https://github.com/Sariay/hexo-theme-Annie/commit/b421393dd259809fadba119547fda4fcf2633f1f)
- [x] 文章目录优化[b421393](https://github.com/Sariay/hexo-theme-Annie/commit/b421393dd259809fadba119547fda4fcf2633f1f)
- [x] 文章字体调整[b421393](https://github.com/Sariay/hexo-theme-Annie/commit/b421393dd259809fadba119547fda4fcf2633f1f)
- [ ] 语言支持优化 [4](https://github.com/Sariay/hexo-theme-Annie/issues/6#issue-369754545)
- [ ] 相册图片利用 [5](https://github.com/Sariay/hexo-theme-Annie/issues/6#issue-369754545)
- [ ] valine与<u>文章阅读计数</u>的冲突问题,参考[valine官网](https://valine.js.org/visitor.html)、[next主题案例](https://valine.js.org/visitor.html)(注:当前使用DesertsP版的[valine](https://github.com/DesertsP/Valine))
- [ ] ...

2020.1.7 日新增,<u>欢迎填坑!</u>

- [ ] 评论插件:[hypercomments](https://www.hypercomments.com/en/demo?type=blogs#) 、[utterances](https://utteranc.es/)、[畅言云评](http://changyan.kuaizhan.com/packages-intro)
- [ ] 相册页:寻找替代品
- [ ] 多语言站点:接入翻译接口
- [ ] 优化布局:index-pure
- [ ] 在线聊天:daovoice 
- [ ] 增加二维码:便于文章分享和阅读
- [ ] ...

### Thanks

[hexo-generator-search-zip](https://github.com/SuperKieran/hexo-generator-search-zip) plugin by [Kieran](https://github.com/SuperKieran/hexo-generator-search-zip)

The index-page layout referenced [Diaspora](https://github.com/LoeiFy/Diaspora)

The archive-page layout referenced [Feng'Blog](https://1984n.win/archives-post/)

Other open source...

(Relevant Rights Reserved by Them!)

### License

MIT
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.