Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 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`