codeblock: # Code Highlight theme # Available values: normal | night | night eighties | night blue | night bright | solarized | solarized dark | galactic # See: https://github.com/chriskempson/tomorrow-theme highlight_theme: night # Add copy button on codeblock copy_button: enable: true # Show text copy result. show_result: false # Available values: default | flat | mac style: mac
tag 颜色设置
1 2 3 4 5 6 7 8
# TagCloud settings for tags page. tagcloud: # All values below are same as default, change them by yourself. min: 12 # Minimun font size in px max: 30 # Maxium font size in px start: "#555"# Start color (hex, rgba, hsla or color keywords) end: "#ccc"# End color (hex, rgba, hsla or color keywords) amount: 200 # Amount of tags, change it if you have more than 200 tags
打开 katex
打开 themes/next/_config.yml,找到katex,将enable改为true。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Math Formulas Render Support math: # Default (true) will load mathjax / katex script on demand. # That is it only render those page which has `mathjax: true` in Front-matter. # If you set it to false, it will load mathjax / katex srcipt EVERY PAGE. per_page: true
# hexo-renderer-pandoc (or hexo-renderer-kramed) required for full MathJax support. mathjax: enable: false # See: https://mhchem.github.io/MathJax-mhchem/ mhchem: false
# hexo-renderer-markdown-it-plus (or hexo-renderer-markdown-it with markdown-it-katex plugin) required for full Katex support. katex: enable: true # See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex copy_tex: false
并且装好 hexo-renderer-markdown-it-plus。
1
npm install hexo-renderer-markdown-it-plus --save
还要修改让 katex-html 隐藏,否则会加载两次 katex。
1 2 3 4 5 6 7
.katex-html { /* \newline is an empty block at top level, between .base elements */ > .newline { display: none; } display: none; }