A simple Hexo template with great performance on different devices.
node version above 16
git clone https://github.com/syniox/maupassant-hexo.git themes/maupassant
npm install hexo-renderer-sass2 --save
npm install hexo-renderer-pug --save
node version under 14, legacy
git clone https://github.com/syniox/maupassant-hexo.git themes/maupassant
npm install hexo-renderer-sass --save
npm install hexo-renderer-pug --save
hexo-word-counter was integrated. To enable it, please type:
npm i hexo-word-counter
And then paste this to the Hexo's _config.yml
:
symbols_count_time:
symbols: true
time: true
total_symbols: true
total_time: true
exclude_codeblock: false
wpm: 275
suffix: "mins."
npm un hexo-renderer-marked --save
npm i hexo-renderer-markdown-it --save
npm i @iktakahiro/markdown-it-katex --save
Then add this into hexo's _config.yml
:
# Markdown-it config
## Docs: https://github.com/hexojs/hexo-renderer-markdown-it
markdown:
plugins:
- '@iktakahiro/markdown-it-katex'
npm install markdown-it-highlightjs --save
Then add this into _config.yml
:
markdown:
...
plugins:
...
- markdown-it-highlightjs
Open _config.yml
and change post_asset_folder
to true.
Edit _config.yml in hexo root, change theme
to maupassant
- Check version of hexo and review
- Check if your terminal's current directory is hexo's root directory which contains
source/
,themes/
, etc. - Feel free to open an issue