math: # Default (false) 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 true, it will load mathjax / katex script EVERY PAGE. - every_page: false + every_page: true
mathjax: - enable: false + enable: true
简单测试是否成功,source/_posts/hello-world.md
1
$\pi\gamma^x \int_{i=0}^1 dx$
本地搜索支持
1
yarn add hexo-generator-searchdb
_config.yml
1 2 3 4 5
+search: + path: search.xml + field: post + content: true + format: html
theme/next/_config.yml
1 2 3
local_search: - enable: false + enable: true
Disqus 评论支持
theme/next/_config.yml
1 2 3 4 5 6 7
# Disqus # For more information: https://disqus.com disqus: - enable: false - shortname: + enable: true + shortname: cromarmot
# Site -title: Hexo +title: "Cro-Marmot's Blog" subtitle: '' description: '' keywords: -author: John Doe -language: en -timezone: '' +author: 'Cro-Marmot' +language: 'zh-TW' +timezone: 'Asia/Shanghai'
# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' -url: http://example.com -permalink: :year/:month/:day/:title/ +url: https://cromarmot.github.io/Blog +root: /Blog/ +permalink: :title/ permalink_defaults: pretty_urls: trailing_index: true # Set to false to remove trailing 'index.html' from permalinks @@ -62,7 +63,7 @@ prismjs: # order_by: Posts order. (Order by date descending by default) index_generator: path: '' - per_page: 10 + per_page: 5 order_by: -date
@@ -67,7 +67,7 @@ creative_commons: # Available values: big | small size: small sidebar: false - post: false + post: true # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org language: @@ -95,11 +95,12 @@ open_graph: # Value before `||` delimiter is the target link, value after `||` delimiter is the name of Font Awesome icon. # External url should start with http:// or https:// menu: - #home: / || fa fa-home + home: / || fa fa-home + archives: /archives/ || fa fa-archive + rss: /atom.xml || fa fa-rss #about: /about/ || fa fa-user - #tags: /tags/ || fa fa-tags - #categories: /categories/ || fa fa-th - #archives: /archives/ || fa fa-archive + categories: /categories/ || fa fa-th + tags: /tags/ || fa fa-tags #schedule: /schedule/ || fa fa-calendar #sitemap: /sitemap.xml || fa fa-sitemap #commonweal: /404/ || fa fa-heartbeat @@ -107,7 +108,7 @@ menu: # Enable / Disable menu icons / item badges. menu_settings: icons: true - badges: false + badges: true
sidebar: # Sidebar Position. - position: left - #position: right + #position: left + position: right
# Manual define the sidebar width. If commented, will be default for: # Muse | Mist: 320 @@ -130,7 +131,7 @@ sidebar: # - always expand for all pages automatically. # - hide expand only when click on the sidebar toggle icon. # - remove totally remove sidebar including sidebar toggle. - display: post + display: hide
# Sidebar padding in pixels. padding: 18 @@ -140,9 +141,9 @@ sidebar: # Sidebar Avatar avatar: # Replace the default image and set the url here. - url: #/images/avatar.gif + url: https://avatars.githubusercontent.com/u/24691835?v=4 # If true, the avatar will be displayed in circle. - rounded: false + rounded: true # If true, the avatar will be rotated with the cursor. rotated: false
@@ -154,8 +155,8 @@ site_state: true # Key is the link label showing to end users. # Value before `||` delimiter is the target permalink, value after `||` delimiter is the name of Font Awesome icon. social: - #GitHub: https://github.com/yourname || fab fa-github - #E-Mail: mailto:yourname@gmail.com || fa fa-envelope + GitHub: https://github.com/cromarmot || fab fa-github + E-Mail: mailto:yexiaorain@gmail.com || fa fa-envelope #Weibo: https://weibo.com/yourname || fab fa-weibo #Google: https://plus.google.com/yourname || fab fa-google #Twitter: https://twitter.com/yourname || fab fa-twitter @@ -178,7 +179,8 @@ links_settings: layout: block
# Table of Contents in the Sidebar # Front-matter variable (nonsupport wrap expand_all). @@ -211,7 +213,7 @@ footer: # Icon name in Font Awesome. See: https://fontawesome.com/icons name: fa fa-heart # If you want to animate the icon, set it to true. - animated: false + animated: true # Change the color of icon, using Hex Code. color: "#ff0000"
# Reading progress bar reading_progress: - enable: false + enable: true # Available values: left | right start_at: left # Available values: top | bottom @@ -396,7 +398,7 @@ reading_progress:
# Bookmark Support bookmark: - enable: false + enable: true # Customize the color of the bookmark. color: "#222" # If auto, save the reading progress when closing the page or clicking the bookmark-icon. @@ -469,7 +471,7 @@ font:
# If true, site-subtitle will be added to index page. # Remember to set up your site-subtitle in Hexo `_config.yml` (e.g. subtitle: Subtitle) -index_with_subtitle: false +index_with_subtitle: true
# Automatically add external URL with Base64 encrypt & decrypt. exturl: false @@ -531,11 +533,11 @@ fancybox: false # A JavaScript library for zooming images like Medium. # Warning: Do not enable both `fancybox` and `mediumzoom`. # For more information: https://medium-zoom.francoischalifour.com -mediumzoom: false +mediumzoom: true
# Vanilla JavaScript plugin for lazyloading images. # For more information: https://apoorv.pro/lozad.js/demo/ -lazyload: false +lazyload: true
# Pangu Support # For more information: https://github.com/vinta/pangu.js @@ -546,12 +548,12 @@ pangu: false # For more information: https://getquick.link # Front-matter variable (nonsupport home archive). quicklink: - enable: false + enable: true
# Home page and archive page can be controlled through home and archive options below. # This configuration item is independent of `enable`. home: false - archive: false + archive: true
# Default (true) will initialize quicklink after the load event fires. delay: true