Skip to content

Latest commit

 

History

History
96 lines (74 loc) · 2.43 KB

README.md

File metadata and controls

96 lines (74 loc) · 2.43 KB

maupassant

A simple Hexo template with great performance on different devices.

template preview

Install

install renderers

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

(optional) word-counter

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

(optional) markdown-it and katex support

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'

(optional) highlightjs support

npm install markdown-it-highlightjs --save

Then add this into _config.yml:

markdown:
  ...
  plugins:
    ...
    - markdown-it-highlightjs

(optional) pictures support

Open _config.yml and change post_asset_folder to true.

Switch to maupassant

Edit _config.yml in hexo root, change theme to maupassant

Probable solutions

  • Check version of hexo and review Migrating from 2.x to 3.0
  • Check if your terminal's current directory is hexo's root directory which contains source/, themes/, etc.
  • Feel free to open an issue

Maupassant on different platform: