A Hexo blog theme with a Lofter style, using Pug templates and Sass styles
hexo-theme-snark — Hexo Blog Template
By Litreily
hexo-theme-snark is a Hexo blog theme with a Lofter style, released under the MIT license, featuring built-in archive, category, and tag pages, local search, code highlighting, and Valine comments.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Built-in common pages such as archives, categories, tags, and about
Supports local search, Fancybox image viewing, and Fontawesome v4.7.0 icons
Code highlighting can be either Google Code Prettify or Highlight.js (default)
The comment system currently only supports Valine, requiring parameters in the configuration
Code is released under the MIT license, allowing free use, modification, commercial use, and distribution
Template Details
hexo-theme-snark is a theme developed by Litreily for the Hexo static blog engine. The repository describes it as "An hexo theme with lofter style," and the demo site is https://www.litreily.top/. The theme uses Pug templates and Sass styles. Installation requires additionally installing hexo-renderer-pug and hexo-renderer-sass, and disabling Hexo's default code highlighting in the blog configuration.
In terms of features, the theme provides common pages such as archives, categories, tags, and about, and supports local search, Fancybox image viewing, copyright notices, Fontawesome v4.7.0 icons, Baidu Analytics, and two code highlighting options: Google Code Prettify and Highlight.js (default). The comment system currently only supports Valine, and Valine parameters must be filled in the configuration file. RSS, sitemap, and similar features are provided by optional Hexo plugins and are not included in the theme itself.
Usage limitations: The theme depends on Pug and Sass renderers; failure to install them will cause build failures. Comments only support Valine; other comment systems are not mentioned in the README. Local search requires installing the hexo-generator-search plugin. The code is released under the MIT license, allowing free use, modification, commercial use, and distribution, but third-party assets such as demo images, fonts, and icons must be checked against their respective licenses, and external services such as domains and hosting may incur additional charges.
Is it right for your project?
Use Cases
- Building a personal blog with Hexo and wanting a Lofter-style appearance
- Blogs that need common pages such as archives, categories, and tags, plus local search functionality
- Hexo sites using Valine as the comment system
- Blogs that need Baidu Analytics and copyright notice features
Suitable For
- Users familiar with basic Hexo operations who can install renderers and plugins themselves
- Blog authors who prefer the Lofter style and want to quickly apply an existing theme
- Sites using Valine comments and accepting its configuration approach
- Personal blogs that need basic features such as local search and image viewing
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Clone the theme into the themes/snark directory via git clone
- 2
Install the two renderers hexo-renderer-pug and hexo-renderer-sass
- 3
Disable Hexo's default code highlighting in the blog's _config.yml
- 4
Create common pages such as archives, categories, tags, and about as needed
- 5
RSS, local search, and sitemap require installing their respective Hexo generator plugins
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 applies to that version's code and does not imply that external services or third-party assets are free.
Must comply with when using
- The code of this version may be used, modified, used commercially, and distributed for free.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full 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
- The comment system currently only supports Valine; other comment systems are not provided. Using comments requires configuring parameters as required by Valine.
- The theme depends on the Pug renderer; failure to install hexo-renderer-pug will cause build failures.
- The theme depends on the Sass renderer; failure to install hexo-renderer-sass will cause build failures.
- Local search requires additionally installing the hexo-generator-search plugin; the theme itself does not include this feature.
- RSS requires additionally installing the hexo-generator-feed plugin; the theme itself does not provide it.
- Sitemap requires additionally installing the hexo-generator-sitemap plugin; the theme itself does not provide it.
- Using Valine comments requires filling in Valine parameters in the configuration file, which may involve external service accounts.
- 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
Comment System (Only Valine as for now)
Original README
npm install hexo-renderer-pug --save
Original README
npm install hexo-renderer-sass --save
Original README
npm install hexo-generator-search --save
Original README
npm install hexo-generator-feed --save
Original README
npm install hexo-generator-sitemap --save
Original README
https://github.com/Litreily/hexo-theme-snark/blob/master/LICENSEhttps://github.com/Litreily/hexo-theme-snark/blob/master/README.mdplease modify valine parameters in `_config.xml`
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-01. 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
- More documented · 87 / 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
- 2026-05-15
- Screenshot last checked
- 2026-10-01
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.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 113798097a3e35abfe03eaa841fbb64eb0ae03109a5f17c465bf7521c58d029b
2026-10-01T03:26:50.775Z
Source file / repository# hexo-theme-snark
An hexo theme with lofter style, it's very simple and cool!
## Features
- Baidu Analytics
- Code Highlight
- Google Code Prettify
- Highlight.js (`default`)
- Comment System (Only Valine as for now)
- General pages
- Archives
- Categories
- Tags
- Copyright Notice
- Fancybox image viewer
- Fontawesome v4.7.0 icons
- Local Search
- Suitable for screens of different sizes
## Installation
``` sh
git clone https://github.com/litreily/hexo-theme-snark.git themes/snark
npm install hexo-renderer-pug --save
npm install hexo-renderer-sass --save
```
then disable default highlight in blog/_config.yml
``` yml
highlight:
enable: false
line_number: false
auto_detect: false
tab_replace:
```
### Add General Pages
For beginner of `hexo`, you may need to know how to create general pages like `archives`, `categories`, `tags` and so on. If you already know that, please skip this step.
```bash
hexo new page archives
hexo new page categories
hexo new page tags
hexo new page about
```
Running above commands and you will get result as below (hidden something not related).
```bash
$ tree -L 2 source
source
├── _posts
├── about
│ └── index.md
├── archives
│ └── index.md
├── categories
│ └── index.md
├── index.md
└── tags
└── index.md
```
### Optional
You may need install some hexo plugins as below
- `npm install hexo-generator-feed --save` for RSS
- `npm install hexo-generator-search --save` for local search
- `npm install hexo-generator-sitemap --save` for sitemap
You can add your customized css to `source/css/customize.scss`, then it will be load to `head` of blog
### Comment System
- [Valine](https://valine.js.org/) please modify valine parameters in `_config.xml`
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
