Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litreily/hexo-theme-snark
An hexo theme with lofter style
https://github.com/litreily/hexo-theme-snark
blog hexo-theme lofter-style pug snark-hexo theme
Last synced: 4 months ago
JSON representation
An hexo theme with lofter style
- Host: GitHub
- URL: https://github.com/litreily/hexo-theme-snark
- Owner: Litreily
- License: mit
- Created: 2018-08-22T14:47:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-26T00:41:52.000Z (almost 4 years ago)
- Last Synced: 2024-05-20T09:22:30.716Z (8 months ago)
- Topics: blog, hexo-theme, lofter-style, pug, snark-hexo, theme
- Language: SCSS
- Homepage: https://www.litreily.top
- Size: 440 KB
- Stars: 72
- Watchers: 2
- Forks: 13
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 sitemapYou 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`