# 网站的页脚设置部分 footer: # Specify the date when the site was setup. If not defined, current year will be used. since:2021# 网站的建站时间,如果不写就是你自己建站的时间
# Icon between year and copyright info. icon:# 这里的icon是页脚建站时间和网站名字之间的图标,默认是 `user`图标 # Icon name in Font Awesome. See: https://fontawesome.com/v4.7.0/icons/ # `heart` is recommended with animation in red (#ff0000). name:user#图标名称 # If you want to animate the icon, set it to true. animated:false# 是否是动画,默认 # Change the color of icon, using Hex Code. color:"#808080"# 颜色,16进制
# If not defined, `author` from Hexo `_config.yml` will be used. copyright:# 文章版权设置部分
powered: # Hexo link (Powered by Hexo). enable:true# 是否显示 hexo链接,如果不想显示设置为false即可 # Version info of Hexo after Hexo link (vX.X.X). version:true# 是否显示版本号,如果不想显示设置为false即可
theme:# 这一部分是设置在页脚是否显示主题提供商和版本号,false即可 # Theme & scheme info link (Theme - NexT.scheme). enable:true # Version info of NexT after scheme info (vX.X.X). version:true
# Beian ICP and gongan information for Chinese users. See: http://www.beian.miit.gov.cn, http://www.beian.gov.cn beian:#这一部分设置网站备案,如果还没有备案就不需要填写 enable:false icp: # The digit in the num of gongan beian. gongan_id: # The full num of gongan beian. gongan_num: # The icon for gongan beian. See: http://www.beian.gov.cn/portal/download gongan_icon_url:
# Sidebar padding in pixels. padding:18# 侧边栏填充像素大小,可忽略 # Sidebar offset from top menubar in pixels (only for Pisces | Gemini). offset:12# 侧边栏距离顶部菜单的距离(单位像素) # Enable sidebar on narrow view (only for Muse | Mist). onmobile:false# 在移动设备是否显示菜单栏,仅仅针对 Muse 和 Mist主题有效
# Sidebar Avatar avatar:# 个人头像设置 # Replace the default image and set the url here. url:#/images/avatar.gif # If true, the avatar will be dispalyed in circle. rounded:false# 是否是圆形显示 # If true, the avatar will be rotated with the cursor. rotated:false# 鼠标放置头像上可以旋转
# Posts / Categories / Tags in sidebar. site_state:true# 侧边栏头像下是否显示文章、分类和标签设置
# Table of Contents in the Sidebar # Front-matter variable (unsupport wrap expand_all). toc:# 文章标题设置,这一部分默认设置即可 enable:true# 是否显示文章标题 # Automatically add list number to toc. number:true# 标题是否自动编号 # If true, all words will placed on next lines if header width longer then sidebar width. wrap:false# 如果题目过长,是否换行 # If true, all level of TOC in a post will be displayed, rather than the activated part of it. expand_all:false# 是否显示所有等级的标题 # Maximum heading depth of generated toc. max_depth:6# 接受生成的标题的最大深度
# A button to open designated chat widget in sidebar. # Firstly, you need enable the chat service you want to activate its sidebar button. chat:# 打开chat服务的按钮,首先你需要激活一个 chat 服务,这里可以不用设置,没有实用价值 enable:false# 关闭在线聊天服务即可 #service: chatra #service: tidio icon:comment# Icon name in Font Awesome, set false to disable icon. text:Chat# Button text, change it as you wish.
# Reward (Donate) # 打赏设置 reward_settings: # If true, reward will be displayed in every article by default. enable:false# 时候开启打赏服务 animation:false# 是否添加动画 #comment: Donate comment here.
related_posts:# 是否开启相关文章推荐,不建议开启 enable:false title:# Custom header, leave empty to use the default one display_in_home:false params: maxCount:5 #PPMixingRate: 0.0 #isDate: false #isImage: false #isExcerpt: false
# Post edit # Dependencies: https://github.com/hexojs/hexo-deployer-git post_edit: enable:false url:https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name# Link for view source #url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name # Link for fork & edit
# Show previous post and next post in post footer if exists # Available values: left | right | false post_navigation:left# 上一篇/下一篇文章导航,选择项有 left/right/false
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:"#ccc"# Start color (hex, rgba, hsla or color keywords) end:"#111"# End color (hex, rgba, hsla or color keywords) amount:200# Amount of tags, change it if you have more than 200 tags
# Google Calendar # Share your recent schedule to others via calendar page. calendar:# 日程表界面 calendar_id:<required># Your Google account E-Mail api_key:<required> orderBy:startTime offsetMax:24# Time Range offsetMin:4# Time Range showDeleted:false singleEvents:true maxResults:250
主题框架设置
# Set the text alignment in posts / pages. text_align:# 文本对齐方式,默认居中 justify 即可 # Available values: start | end | left | right | center | justify | justify-all | match-parent desktop:justify mobile:justify
# Reduce padding / margin indents on devices with narrow width. mobile_layout_economy:false# 移动端是否窄化布局,默认即可
# Hide sticky headers and color the menu bar on Safari (iOS / macOS). safari_rainbow:false# safari浏览器,默认即可
# Custom Logo (Do not support scheme Mist) custom_logo:#/uploads/custom-logo.jpg # 用户 logo ,默认即可
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:normal# 代码高亮主题,有 normal | night | night eighties | night blue | night bright | solarized | solarized dark | galactic 几种选择 # Add copy button on codeblock copy_button:# 代码块中的复制按钮 enable:false# 建议 true # Show text copy result. show_result:false# 是否显示复制成功/复制失败信息,建议 true # Available values: default | flat | mac style:# 代码块的风格,其中有mac风格,自己可以选择尝试一下,但我还是觉得默认的 normal 可以
back2top:# 返回页面顶部按钮 enable:true# 建议开启 # Back to top in sidebar. sidebar:false# 在侧边栏就不建议了,默认false即可 # Scroll percent label in b2t button. scrollpercent:false# 显示滚动的百分比,根据个人喜好
# Reading progress bar reading_progress:# 阅读进度条,这里建议默认 enable:false # Available values: top | bottom position:top color:"#37c6c0" height:3px
# Bookmark Support bookmark:# 书签,如果开启,则下一次使用的时候就会从你上次浏览的地方显示,改为 true 即可 enable:false # Customize the color of the bookmark. color:"#222" # If auto, save the reading progress when closing the page or clicking the bookmark-icon. # If manual, only save it by clicking the bookmark-icon. save:auto
# `Follow me on GitHub` banner in the top-right corner. github_banner:# 在右上角的 github 图标处,点击进入自己的github账户,建议自己有开源的项目可以开启,也是一个宣传自己的机会 enable:false permalink:https://github.com/yourname title:FollowmeonGitHub
# Uri of fonts host, e.g. //fonts.googleapis.com (Default). host:
# 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:Lato size:
# Font settings for site title (.site-title). title: external:true family: size:
# Font settings for headlines (<h1> to <h6>). headings: external:true family: size:
# Font settings for posts (.post-body). posts: external:true family:
# Font settings for <code> and code blocks. codes: external:true family:
数字公式加持
# Math Formulas Render Support math:# 数学公式插件,显示数学公式的插件,仅设置为 true 还不行,需要下载依赖插件 # 可以选择两个引擎 mathjax / katex # 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:false # See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex copy_tex:false
# Easily enable fast Ajax navigation on your website. # Dependencies: https://github.com/theme-next/theme-next-pjax pjax:false
# FancyBox is a tool that offers a nice and elegant way to add zooming functionality for images. # For more information: https://fancyapps.com/fancybox fancybox:false
# A JavaScript library for zooming images like Medium. # Do not enable both `fancybox` and `mediumzoom`. # For more information: https://github.com/francoischalifour/medium-zoom mediumzoom:false
# Vanilla JavaScript plugin for lazyloading images. # For more information: https://github.com/ApoorvSaxena/lozad.js lazyload:false
# Pangu Support # For more information: https://github.com/vinta/pangu.js pangu:false
# Quicklink Support # For more information: https://github.com/GoogleChromeLabs/quicklink # Front-matter (unsupport home archive). quicklink:# 快链,我还没有尝试过,可以自己试试 enable:false
# 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
# Default (true) will initialize quicklink after the load event fires. delay:true # Custom a time in milliseconds by which the browser must execute prefetching. timeout:3000 # Default (true) will enable fetch() or falls back to XHR. priority:true
# For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores. # See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns ignores:
评论功能
# --------------------------------------------------------------- # Comments Settings # See: https://theme-next.org/docs/third-party-services/comments # --------------------------------------------------------------- # next 主题支持几个评论插件 disqus | disqusjs |gitalk | livere | changyan(china) | valine(china) | # 而且同时支持多个评论系统 # 具体的请看我所配置 valine 方法 # Multiple Comment System Support comments: # Available values: tabs | buttons style:tabs # Choose a comment system to be displayed by default. # Available values: changyan | disqus | disqusjs | gitalk | livere | valine active: # Setting `true` means remembering the comment system selected by the visitor. storage:true # Lazyload all comment systems. lazyload:false # Modify texts or order for any navs, here are some examples. nav: #disqus: # text: Load Disqus # order: -1 #gitalk: # order: -2
# DisqusJS # Alternative Disqus - Render comment component using Disqus API. # Demo: https://suka.js.org/DisqusJS/ # For more information: https://github.com/SukkaW/DisqusJS disqusjs: enable:false # API Endpoint of Disqus API (https://disqus.com/api/). # Leave api empty if you are able to connect to Disqus API. Otherwise you need a reverse proxy for it. # For example: # api: https://disqus.skk.moe/disqus/ api: apikey:# Register new application from https://disqus.com/api/applications/ shortname:# See: https://disqus.com/admin/settings/general/
# Valine # For more information: https://valine.js.org, https://github.com/xCss/Valine valine: enable:false appid:# Your leancloud application appid appkey:# Your leancloud application appkey notify:false# Mail notifier verify:false# Verification code placeholder:Justgogo# Comment box placeholder avatar:mm# Gravatar style guest_info:nick,mail,link# Custom comment header pageSize:10# Pagination size language:# Language, available values: en, zh-cn visitor:false# Article reading statistic comment_count:true# If false, comment count will only be displayed in post page, not in home page recordIP:false# Whether to record the commenter IP serverURLs:# When the custom domain name is enabled, fill it in here (it will be detected automatically by default, no need to fill in) #post_meta_order: 0
# LiveRe comments system # You can get your uid from https://livere.com/insight/myCode (General web site) livere_uid:# <your_uid>
# Gitalk # For more information: https://gitalk.github.io, https://github.com/gitalk/gitalk gitalk: enable:false github_id:# GitHub repo owner repo:# Repository name to store issues client_id:# GitHub Application Client ID client_secret:# GitHub Application Client Secret admin_user:# GitHub repo owner and collaborators, only these guys can initialize gitHub issues distraction_free_mode:true# Facebook-like distraction free mode # Gitalk's display language depends on user's browser or system environment # If you want everyone visiting your site to see a uniform language, you can set a force language value # Available values: en | es-ES | fr | ru | zh-CN | zh-TW language:
文章评价功能
# --------------------------------------------------------------- # Post Widgets & Content Sharing Services # See: https://theme-next.org/docs/third-party-services/post-widgets # --------------------------------------------------------------- # next 主题支持两个评估系统: Widgetpack Rating 和 AddThis # Star rating support to each article. # To get your ID visit https://widgetpack.com rating:# rating 插件设置 enable:false id:# <app_id> color:fc6423
# AddThis Share. See: https://www.addthis.com # Go to https://www.addthis.com/dashboard to customize your tools. add_this_id:# AddThis 插件设置
# Google Analytics 谷歌统计设置 google_analytics: tracking_id:# <app_id> # 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
# Show number of visitors of each article. # You can visit https://leancloud.cn to get AppID and AppKey. # AppID and AppKey are recommended to be the same as valine's for counter compatibility. # Do not enable both `valine.visitor` and `leancloud_visitors`. leancloud_visitors:# leancloud插件设置 enable:false app_id:# <app_id> app_key:# <app_key> # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security # If you don't care about security in leancloud counter and just want to use it directly # (without hexo-leancloud-counter-security plugin), set `security` to `false`. security:true betterPerformance:false
# Another tool to show number of visitors to each article. # Visit https://console.firebase.google.com/u/0/ to get apiKey and projectId. # Visit https://firebase.google.com/docs/firestore/ to get more information about firestore. firestore:# firestore设置 enable:false collection:articles# Required, a string collection name to access firestore database apiKey:# Required projectId:# Required
# Show Views / Visitors of the website / page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi busuanzi_count:# 卜算子 enable:false total_visitors:true total_visitors_icon:user total_views:true total_views_icon:eye post_views:true post_views_icon:eye
# next 主题支持两种站内搜索插件 algolia_search 和 local_search(比较常用); # local_search 的具体配置见下一篇博客内容
# Algolia Search # For more information: https://www.algolia.com algolia_search: enable:false hits: per_page:10 labels: input_placeholder:SearchforPosts hits_empty:"We didn't find any results for the search: ${query}" hits_stats:"${hits} results found in ${time} ms"
# Local Search # Dependencies: https://github.com/theme-next/hexo-generator-searchdb local_search: enable:false # 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
# next 主题支持在线聊天服务,支持两个插件 charta 和 tidioA,这一部分自认为没有必要,所以我也没有配置
# Chatra Support # See: https://chatra.io # Dashboard: https://app.chatra.io/settings/general chatra:# charta 插件设置 enable:false async:true id:# Visit Dashboard to get your ChatraID #embed: # Unfinished experimental feature for developers. See: https://chatra.io/help/api/#injectto
# Tidio Support # See: https://www.tidiochat.com # Dashboard: https://www.tidiochat.com/panel/dashboard tidio:# tidio 插件设置 enable:false key:# Public Key, get it from dashboard. See: https://www.tidiochat.com/panel/settings/developer
# Note tag (bs-callout) note: # Note tag style values: # - simple bs-callout old alert style. Default. # - modern bs-callout new (v2-v3) alert style. # - flat flat callout style with background, like on Mozilla or StackOverflow. # - disabled disable all CSS styles import of note tag. style:simple icons:false # Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6). # Offset also applied to label tag variables. This option can work with disabled note tag. light_bg_offset:0
# Tabs tag tabs: transition: tabs:false labels:true
# PDF tag, requires two plugins: pdfObject and pdf.js # pdfObject will try to load pdf files natively, if failed, pdf.js will be used. # The following `cdn` setting is only for pdfObject, because cdn for pdf.js might be blocked by CORS policy. # So, you must install the dependency of pdf.js if you want to use pdf tag and make it available to all browsers. # See: https://github.com/theme-next/theme-next-pdf pdf: enable:false # Default height height:500px
# Mermaid tag mermaid: enable:false # Available themes: default | dark | forest | neutral theme:forest
# Canvas-nest # Dependencies: https://github.com/theme-next/theme-next-canvas-nest # For more information: https://github.com/hustcc/canvas-nest.js canvas_nest: enable:false onmobile:true# Display on mobile or not color:"0,0,255"# RGB values, use `,` to separate opacity:0.5# The opacity of line: 0~1 zIndex:-1# z-index property of the background count:99# The number of lines
# Canvas-ribbon # Dependencies: https://github.com/theme-next/theme-next-canvas-ribbon # For more information: https://github.com/zproo/canvas-ribbon canvas_ribbon: enable:false size:300# The width of the ribbon alpha:0.6# The transparency of the ribbon zIndex:-1# The display level of the ribbon