# Custom Logo (Do not support scheme Mist)custom_logo:/images/themeImg/logo.png
代码高亮显示和复制按钮
codeblock:# Code Highlight theme # Available values: normal | night | night eighties | night blue | night bright | solarized | solarized dark | galactic
# See: https://github.com/chriskempson/tomorrow-themehighlight_theme:night# Add copy button on codeblockcopy_button:enable:true# Show text copy result.show_result:true# Available values: default | flat | macstyle:
bookmark: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 标签
# Follow me on GitHub banner in right-top corner.github_banner:enable:truepermalink:https://github.com/yournametitle:FollowmeonGitHub
字体设置
Next为5中类型提供字体设置
全局字体设置
title字体设置
标题字体设置 h1 、h2
文章字体设置
代码字体设置
font:# Use custom fonts families or not.# Depended options: `external` and `family`.enable:true# 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:truefamily:Mondasize:1.125# Font settings for site title (.site-title).title:external:truefamily:LobsterTwosize:# Font settings for headlines (<h1> to <h6>).headings:external:truefamily:Amitasize:# Font settings for posts (.post-body).posts:external:truefamily:RobotoSlab# Font settings for <code> and code blocks.codes:external:truefamily:PTMono
安装插件
支持两种安装方法
本地安装
使用CDN links
如果你的站点是部署在一些免费的云端,推荐使用CDN links,因为它加载起来更快
本地安装
#在bash中安装下载对应插件$cdthemes/next$gitclonehttps://github.com/theme-next/theme-next-pjaxsource/lib/pjax# 启用pjax插件# Easily enable fast Ajax navigation on your website.# Dependencies: https://github.com/theme-next/theme-next-pjaxpjax:true
CDN links 安装
jsDelivr CDN is recommended to deliver our third-party plugins
# Script Vendors. Set a CDN address for the vendor you want to customize.# Be aware that you would better use the same version as internal ones to avoid potential problems.# Remember to use the https protocol of CDN files when you enable https on your site.vendors:# Internal path prefix._internal:libpjax:https://cdn.jsdelivr.net/npm/pjax@0.2.8/pjax.min.js
valine:enable:trueappid:# Your leancloud application appidappkey:# Your leancloud application appkeynotify:false# Mail notifierverify:false# Verification codeplaceholder:Justgogo# Comment box placeholderavatar:mm# Gravatar styleguest_info:nick,mail,link# Custom comment headerpageSize:10# Pagination sizelanguage:zh-cn# Language, available values: en, zh-cnvisitor:false# Article reading statisticcomment_count:true# If false, comment count will only be displayed in post page, not in home pagerecordIP: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
5.搜索
使用本地插件配置搜索数据库
npminstallhexo-generator-searchdb
hexo/_config.yml文件配置
`search: path: search.xml field: post format: html limit: 10000`
next/_config.yml文件中配置
# Local search# Dependencies: https://github.com/theme-next/hexo-generator-searchdblocal_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 -1top_n_per_article:1# Unescape html strings to the readable one.unescape:false# Preload the search data when the page loads.preload:false