Skip to content

Litreily/hexo-theme-snark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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.

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).

$ 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 please modify valine parameters in _config.xml