Displays blog post lists in a grid view
hexo-theme-lattice — Hexo Blog Template
By aispin
Lattice is a Hexo blog theme that displays post lists in a grid view, created and maintained by AOTU Labs under the MIT license.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Preview provided in the project README.
One original preview is available. Open the full image to inspect the design.
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Supports both Disqus and Duoshuo comment systems
Supports Google Analytics, Baidu Analytics, and busuanzi analytics
Provides two custom tags: pimg and tag_cfg
Built-in Lunr client-side full-text search, with default support for English and Simplified Chinese
Template Details
Lattice is a blog theme for Hexo whose core feature is displaying blog post lists in a grid view. The theme is created and maintained by AOTU Labs, and the repository was last updated in 2016.
The theme includes several configurable capabilities: for comments it supports Disqus and Duoshuo; for analytics it supports Google Analytics, Baidu Analytics, and busuanzi (used to display pv and uv on each post); for code highlighting it offers selectable themes including normal, night, eighties, blue, and bright; it also supports a custom logo, post covers, and post asset directories.
The theme provides two custom tags: pimg for quickly inserting content images into posts, where images must be placed in the directory specified by post.img_dir; and tag_cfg for reading site configuration fields within posts. Image display uses Fancybox. Menu data is placed in the Hexo site's _data directory. The theme uses the hexo-generator-lunr plugin to implement client-side full-text search.
Regarding languages, English and Simplified Chinese are the default languages; translations can be added in the languages directory, and the default language can be switched in the site _config.yml. The development environment requires Hexo 3.0+ and Node 4.0+, and the README explicitly states incompatibility with Node 6.0+.
Is it right for your project?
Use Cases
- Building a personal blog with Hexo and wanting to present posts in a grid layout
- Blog sites that need Duoshuo comments and Baidu Analytics for Chinese readers
- Wanting to quickly insert images and read site configuration in posts via custom tags
Suitable For
- Blog authors using Hexo 3.0+ running in a Node 4.x environment
- Hexo users who prefer a grid-view post list
- Sites that need a bilingual Chinese-English interface and client-side full-text search
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Clone the repository into the themes/lattice directory via git clone, and set theme to lattice in the site _config.yml
- 2
Requires Hexo 3.2.0 or above; the development environment requires Node 4.0+, and the README states incompatibility with Node 6.0+
- 3
Disqus, Google Analytics, and Baidu Analytics are configured in the site configuration; Duoshuo, busuanzi, code highlighting theme, logo, and post covers are set in the theme configuration
- 4
Before using the pimg tag, place images in the directory specified by post.img_dir; spaces in alt text must be replaced with %20
- 5
Full-text search depends on the hexo-generator-lunr plugin, and the lunr field and path must be set in the site configuration
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis 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
- Using this theme requires installing Hexo 3.2.0 or higher, which is a version requirement for the host framework.
- The development environment requires Node 4.0 or above, but it is explicitly incompatible with Node 6.0 and above, so it must be used in a Node 4.x environment.
- The Duoshuo comment system is mainly aimed at Chinese sites; using this feature on non-Chinese sites has limited value.
- When enabling the administrator features of Duoshuo comments, user_id cannot be empty; the user ID must be obtained from dev.duoshuo.com.
- Client-side full-text search depends on the additional hexo-generator-lunr plugin, which must be installed separately, and the lunr field and path must be set in the site configuration.
- Before using the pimg tag to insert images, the images must first be placed in the directory specified by post.img_dir; otherwise they cannot be referenced correctly.
- Spaces cannot be used in the alt text of the pimg tag; spaces must be replaced with %20.
- Post image display depends on the third-party Fancybox component, whose own license and usage conditions must be confirmed separately.
- 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.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
**Install Hexo 3.2.0 or above.**
Original README
- Node 4.0+ (But not compatible with 6.0+
Original README
`Duoshuo` is a comment system specially for Chinese.
Original README
# user_id must NOT be null when admin_enable is true!
Original README
`Lattice` uses the 'hexo-generator-lunr' plugin to implement client-side full text search.
Original README
To use 'pimg', you should put your images into the folder defined in `post.img_dir`.
Original README
Note: Don't use space charaters in the `alt text` field, replace any space charaters with `%20` if you have to.
Original README
https://github.com/aispin/hexo-theme-lattice/blob/master/LICENSEhttps://github.com/aispin/hexo-theme-lattice/blob/master/README.md`Lattice` uses [Fancybox] to showcase your photos in your posts.
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-02. 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 · 56 / 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
- 2016-06-24
- Screenshot last checked
- 2026-10-02
No demo link is recorded. Use the repository instructions to evaluate the project locally; the screenshot alone cannot establish interactive behavior.
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.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 272f46ded8951c041eb45f2b4aebc922c8b2fa1d4e1cbd406e0e79f7d90646f6
2026-10-02T15:09:01.344Z
Source file / repository
# Lattice
The best hexo theme for showing blog posts in grid view, created and maintained by [AOTU Labs](//aotu.io).
It's named `Lattice`.
[Preview](//aotu.io/)

## Installation
### Install
``` bash
$ git clone https://github.com/o2team/hexo-theme-lattice.git themes/lattice
```
**Install Hexo 3.2.0 or above.**
### Enable
Modify `theme` setting in `_config.yml` to `lattice`.
### Update
``` bash
cd themes/lattice
git pull
```
## Features
### Disqus
In your hexo site's configuration (not the theme's configuration).
```yml
# disqus
disqus_shortname: "your disqus shortname"
```
### Duoshuo
`Duoshuo` is a comment system specially for Chinese.
In the theme's configuration:
```yml
# Make duoshuo show UA
# user_id must NOT be null when admin_enable is true!
# you can visit http://dev.duoshuo.com get duoshuo user id.
duoshuo:
shortname: aotu
ua_enable: true
admin_enable: false
user_id: 0
#admin_nickname: ROOT
```
### Google Analytics
In your hexo site's configuration,
```yml
google_analytics: "your GA ID"
```
### Baidu Analytics
For Chinese, in your hexo site's configuration,
```
baidu_analytics: "your BA ID"
```
### busuanzi
`busuanzi` is a lighweight analytics plugin, use it to display `pv` and `uv` on every post.
In the theme's configuration,
```yml
busuanzi: true
```
### Code highlight theme
In the theme's configuration,
```yml
# Code Highlight theme
# Available value:
# normal | night | eighties | blue | bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: normal
```
### Custom Logo
In the theme's configuration, you can specify your own logo picture.
```yml
logo:
url: img/logo-square-120.png
```
### Custom Post Cover and Post Asset Folder
In the theme's configuration,
```yml
post:
cover: post-default.png
img_dir: img/post/
```
### Fancybox
`Lattice` uses [Fancybox] to showcase your photos in your posts.
```

```
### Custom Tag - `pimg`
`pimg` means `post image`, it's a custom tag for you inserting your post's content image quickly.
To use 'pimg', you should put your images into the folder defined in `post.img_dir`.
```
{% pimg imageName [alt text] [JSONImageAttibutes] %}
```
Note: Don't use space charaters in the `alt text` field, replace any space charaters with `%20` if you have to.
For example,
```
{% pimg post-aotu.jpg "An%20Sentence%20WithSpace" '{"title":"hello","class":"test_img"}' %}
```
### Custom Tag - 'tag_cfg'
`tag_cfg` let your access to your site's configuration in your posts.
For example, we can insert the config's description field into a post.
```
{% tag_cfg description %}
```
### Menu
Place your menu data into the `_data` folder of your hexo site.
[Example menu data](https://github.com/o2team/o2team.github.io/blob/hexo/source/_data/menu.yml)
### Lunr (Lattice Specially)
`Lattice` uses the 'hexo-generator-lunr' plugin to implement client-side full text search.
In your hexo site's configuration,
```yml
# lunr
lunr:
field: all
path: assets/lunr/
```
For more details about [hexo-generator-lunr](o2team/hexo-generator-lunr)
## Languages
English and Simplified Chinese are the default languages of the theme. You can add translations in the `languages` folder and change the default language in blog's `_config.yml`.
``` yml
language: zh-CN
```
## Development
### Requirements
- Hexo 3.0+
- Node 4.0+ (But not compatible with 6.0+)
[Hexo]: http://hexo.io/
[Fancybox]: http://fancyapps.com/fancybox/
[Font Awesome]: http://fontawesome.io/
[Aotu.io]: https://aotu.io/
Explore similar templates
Compare previews and descriptions within the same stack and category.

hexo-theme-matery
hexo-theme-matery is a Material Design, responsive Hexo blog theme with homepage carousel, waterfall post list, timeline archive, word cloud tags, radar chart categories, and an about page.
Hexo · Blog

hexo-theme-cactus
Cactus is a responsive Hexo theme for personal websites and blogs, maintained by probberechts. It offers four color schemes (dark, light, white, classic), configurable navigation, homepage post lists, project lists, social links, and copyright year ranges.
Hexo · Blog

hexo-theme-volantis
Volantis is a blog theme for Hexo, distributed as the npm package hexo-theme-volantis and enabled by setting theme to volantis in the Hexo site's _config.yml. It requires Hexo 7.3+, hexo-cli 4.3+, Node.js 22.x LTS+, and npm 10.x LTS+.
Hexo · Blog

hexo-theme-aurora
Hexo Theme Aurora is a futuristic Hexo blog theme built around aurora gradients and a magazine-style grid layout.
Hexo · Blog

hexo-theme-Claudia
Claudia is a Hexo blog theme focused on a clean look and easy configuration. It automatically follows the device's dark mode and claims a 90+ Lighthouse score.
Hexo · Blog

hexo-theme-A4
hexo-theme-A4 is a minimalist Hexo blog theme that mimics the texture of A4 paper, emphasizing simplicity, small size, and minimal configuration.
Hexo · Blog
