An hexo theme with lofter style, it's very simple and cool!
- 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
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:
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
You may need install some hexo plugins as below
npm install hexo-generator-feed --save
for RSSnpm install hexo-generator-search --save
for local searchnpm 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
- Valine please modify valine parameters in
_config.xml