# If the banner of page not setting, it will show the default_top_img default_top_img:/img/headliner.png
# The banner image of index page index_img:
# The banner image of archive page archive_img:
# Note: tag page, not tags page tag_img:
# The banner image of tag page, you can set the banner image for each tag # Format: # - tag name: xxxxx tag_per_img:
# Note: category page, not categories page category_img:
# The banner image of category page, you can set the banner image for each category # Format: # - category name: xxxxx category_per_img:
# The background image of footer footer_img:/img/100734973_p0.png
# Website Background # Can set it to color or image url background:
cover: # Disable the cover or not index_enable:true aside_enable:true archives_enable:true # When cover is not set, the default cover is displayed default_cover: # - xxx.jpg
# -------------------------------------- # Math # --------------------------------------
# About the per_page # if you set it to true, it will load mathjax/katex script in each page # if you set it to false, it will load mathjax/katex script according to your setting (add the 'mathjax: true' or 'katex: true' in page's front-matter) math: # Choose: mathjax, katex # Leave it empty if you don't need math use:katex per_page:true hide_scrollbar:false
mathjax: # Enable the contextual menu enableMenu:true # Choose: all / ams / none, This controls whether equations are numbered and how tags:none
katex: # Enable the copy KaTeX formula copy_tex:true
另外需要安装的插件
1 2 3 4 5
npm un hexo-renderer-marked--save# 如果有安装这个的话,卸载 npm un hexo-renderer-kramed--save# 如果有安装这个的话,卸载
npm i hexo-renderer-markdown-it--save# 需要安装这个渲染插件 npm install katex @renbaoshuo/markdown-it-katex# 需要安装这个katex插件
comments: # Up to two comments system, the first will be shown as default # Leave it empty if you don't need comments # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk # Format of two comments system : Disqus,Waline use:waline # Display the comment name next to the button text:true # Lazyload: The comment system will be load when comment element enters the browser's viewport. # If you set it to true, the comment count will be invalid lazyload:false # Display comment count in post's top_img count:false # Display comment count in Home Page card_post_count:false
# ...
# Waline - A simple comment system with backend support fork from Valine # https://waline.js.org/ waline: serverURL:waline-eta-ten.vercel.app bg: # Use Waline pageview count as the page view count pageview:true option: