hexo-theme-sb
Clean and simple theme for Hexo blog framework.
Installation
Npm installation:
1 |
npm i -S hexo-helper-inline-svg hexo-render-pug hexo-theme-sb |
Yarn installation:
1 |
yarn add hexo-helper-inline-svg hexo-render-pug hexo-theme-sb |
This will install SB theme in both ./node_modules/hexo-theme-sb/
and
./themes/hexo-theme-sb/
folders.
Initialization
Update the config file to start using SB theme:
1 |
theme: hexo-theme-sb |
Check that your .gitignore
file contains /node_modules/
rule.
For better Hexo performance, you could add the following line to your config file:
1 |
ignore: |
Configuration
There is already a config file in SB theme, but it is
commented.
Here is the file with every possible option:
1 |
# General section |
Advanced
This theme follows the latest best practices. This is achieved by using
Starter Project.
Everything is already set up for you, but you could configure the theme by updating
./themes/hexo-theme-sb/config.json
file.
For example, if you want to generate new Critical CSS file, you should update
penthouse.criticalCssConfigs.url
option and set it according to your Hexo configuration.
After this, run gulp
command inside ./themes/hexo-theme-sb/
folder.
It is important that your website is running.
Support
If you’re having issues, please search for issues or open a new one.
If you need any help, please feel free to contact me.