# Usage: `Key: /link/ || icon` # Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-sensitive. # 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:/||fafa-home about:/about/||fafa-user tags:/tags/||fafa-tags categories:/categories/||fafa-th archives:/archives/||fafa-archive #schedule: /schedule/ || fa fa-calendar #sitemap: /sitemap.xml || fa fa-sitemap #commonweal: /404/ || fa fa-heartbeat
# Sidebar Avatar avatar: # Replace the default image and set the url here. url:/images/avatar.png # If true, the avatar will be displayed in circle. rounded:true
Google Analytics
1 2 3 4 5 6 7
# Google Analytics # See: https://analytics.google.com google_analytics: tracking_id:UA-27799979-1 # By default, NexT will load an external gtag.js script on your site. # If you only need the pageview feature, set the following option to true to get a better performance. only_pageview:false
codeblock: # Code Highlight theme # All available themes: https://theme-next.js.org/highlight/ theme: light:stackoverflow-dark dark:stackoverflow-dark prism: light:prism dark:prism-dark # Add copy button on codeblock copy_button: enable:false # Available values: default | flat | mac style:
访客统计、访问次数统计、文章阅读次数统计
1 2 3 4 5 6 7 8 9 10
# Show Views / Visitors of the website / page with busuanzi. # For more information: http://ibruce.info/2015/04/04/busuanzi/ busuanzi_count: enable:true total_visitors:true total_visitors_icon:fafa-user total_views:true total_views_icon:fafa-eye post_views:true post_views_icon:farfa-eye
本地显示的数字是随机的,部署到服务器上面就好了。
站点建立时间
1 2 3
footer: # Specify the year when the site was setup. If not defined, current year will be used. since:2016
# Local search # Dependencies: https://github.com/next-theme/hexo-generator-searchdb local_search: enable: true # If auto, trigger search by changing input. # If manual, trigger search by pressing enter key or search button. trigger: auto # Show top n results per article, show all results by setting to -1 top_n_per_article: 1 # Unescape html strings to the readable one. unescape: false # Preload the search data when the page loads. preload: false
# Math Formulas Render Support # Warning: Please install / uninstall the relevant renderer according to the documentation. # See: https://theme-next.js.org/docs/third-party-services/math-equations # Server-side plugin: https://github.com/next-theme/hexo-filter-mathjax 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:true
mathjax: enable:true # Available values: none | ams | all tags:ams
# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' url:http://luohanjie.com permalink::year-:month-:day/:urlname.html permalink_defaults: pretty_urls: trailing_index:true# Set to false to remove trailing 'index.html' from permalinks trailing_html:true# Set to false to remove trailing '.html' from permalinks
# Uri of fonts host, e.g. https://fonts.googleapis.com (Default). host:https://cdn.baomitu.com
# Font options: # `external: true` will load this font family from `host` above. # `family: Times New Roman`. Without any quotes. # `size: x.x`. Use `em` as unit. Default: 1 (16px)
# Global font settings used for all elements inside <body>. global: external:true family:NotoSerifSC size:
# Font settings for site title (.site-title). title: external:true family:NotoSerifSC size:
# Font settings for headlines (<h1> to <h6>). headings: external:true family:NotoSerifSC size:
# Font settings for posts (.post-body). posts: external:true family:NotoSerifSC
# Font settings for <code> and code blocks. codes: external:true family:SourceCodePro
// Font size $font-size-base = (hexo-config('font.enable') and hexo-config('font.global.size') is a 'unit') ? unit(hexo-config('font.global.size'), em) : 1em; $font-size-smallest = .55em; $font-size-smaller = .6125em; $font-size-small = .675em; $font-size-medium = 0.8em; $font-size-large = 0.925em; $font-size-larger = 1.15em; $font-size-largest = 1.7em;
// Headings font size $font-size-headings-step = .125em; $font-size-headings-base = (hexo-config('font.enable') and hexo-config('font.headings.size') is a 'unit') ? unit(hexo-config('font.headings.size'), em) : 1.425em;