navbar: visiable:auto# always, auto logo:# choose [img] or [icon + title] img:https://gcore.jsdelivr.net/gh/volantis-x/cdn-org/blog/Logo-NavBar@3x.png icon: title: menu: -name:博客 icon:fasfa-rss url:/
小提示 使用「npm i hexo-theme-volantis」方式安装的主题,主题配置文件在「blog/node_modules/hexo-theme-volantis/_config.yml」 使用传统方式安装的主题,主题配置文件在「blog/themes/volantis/_config.yml」
自定义主题外观
最大布局宽度
blog/_config.volantis.yml
custom_css: ... max_width:1080px# Sum of body width and sidebar width
网页所呈现的内容的最大宽度,即 body 和 sidebar 的宽度之和。
抗锯齿
blog/_config.volantis.yml
custom_css: ... font_smoothing:true# font-smoothing for webkit
site_footer: layout: [..., br, hello, ...] ... # You can add your own property here. (Support markdown, for example: br: '<br>') br:'<br>' hello:'[Hello World](/)'
网站与文章封面
封面高度
blog/_config.volantis.yml
cover: height_scheme:full# full, half ...
目前主题提供两种首页封面高度方案,其它页面均为半屏幕高度。
封面布局方案
blog/_config.volantis.yml
cover: ... scheme:dock# search (搜索), dock (坞), featured (精选), focus (焦点) ...
布局方案
适合场景
search
注重搜索
dock
入口选项比较多
featured
选项在4个左右
focus
选项在4个左右
默认显示设置
blog/_config.volantis.yml
cover: ... display: home:true archive:false others:false# can be written in front-matter 'cover: true'
blogger: class:blogger display: [desktop] # [desktop, mobile] avatar:https://gcore.jsdelivr.net/gh/xaoxuu/cdn-assets/avatar/avatar.png title: subtitle: jinrishici:true# Poetry Today. You can set a string, and it will be displayed when loading fails. social:true
# Slide Background backstretch: enable:#true js:https://unpkg.com/jquery-backstretch@2.1.18/jquery.backstretch.min.js position:cover# cover: sticky on the cover. fixed: Fixed as background for the site. shuffle:true# shuffle playlist duration:10000# Duration (ms) fade:1500# fade duration (ms) (Not more than 1500) images:# For personal use only. At your own risk if used for commercial purposes !!! -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/001.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/002.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/003.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/004.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/005.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/006.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/012.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/016.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/019.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/025.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/033.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/034.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/035.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/038.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/039.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/042.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/046.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/051.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/052.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/054.jpg -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper-minimalist/2020/056.jpg
# APlayer is only available in mainland China. # APlayer config: https://github.com/metowolf/MetingJS aplayer: enable:#true js: aplayer:https://unpkg.com/aplayer@1.10/dist/APlayer.min.js meting:https://unpkg.com/meting@2.0/dist/Meting.min.js # Required server:netease# netease, tencent, kugou, xiami, baidu type:playlist# song, playlist, album, search, artist id:3175833810# song id / playlist id / album id / search keyword # Optional fixed:false# enable fixed mode theme:'#1BCDFC'# main color autoplay:false# audio autoplay order:list# player play order, values: 'list', 'random' loop:all# player loop play, values: 'all', 'one', 'none' volume:0.7# default volume, notice that player will remember user setting, default volume will not work after user set volume themselves list_max_height:320px# list max height list_folded:true pjax: enable:true cover:true# 封面是否pjax处理 false:每次切换页面封面都重载,适合封面较少的情况 true:封面经过Pjax处理,适合封面较多的情况 timeout:5000# The timeout in milliseconds for the XHR requests. Set to 0 to disable the timeout. cacheBust:false# When set to true, Pjax appends a timestamp to skip the browser cache. animation:false# false, nprogress, circle banUrl:# 被屏蔽的 url 地址将不启用 pjax 跳转,可以在控制台下使用 window.location.pathname 获取 # - '/artitalk/' # artitalk 不支持 pjax # - '/bb/' # bbtalk 不支持 pjax
plugins: ... backstretch: enable:true js:https://unpkg.com/jquery-backstretch@2.1.18/jquery.backstretch.min.js position:cover# cover: sticky on the cover. fixed: Fixed as background for the site. duration:20000# Duration (ms) fade:1500# fade duration (ms) (Not more than 1500) images:# For personal use only. At your own risk if used for commercial purposes !!! -https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper/abstract/41F215B9-261F-48B4-80B5-4E86E165259E.jpeg ...
plugins: ... # APlayer is only available in mainland China. # APlayer config: https://github.com/metowolf/MetingJS aplayer: enable:true js: aplayer:https://unpkg.com/aplayer@1.10/dist/APlayer.min.js meting:https://unpkg.com/meting@2.0/dist/Meting.min.js # Required server:netease# netease, tencent, kugou, xiami, baidu type:playlist# song, playlist, album, search, artist id:3175833810# song id / playlist id / album id / search keyword # Optional fixed:false# enable fixed mode theme:'#1BCDFC'# main color autoplay:false# audio autoplay order:list# player play order, values: 'list', 'random' loop:all# player loop play, values: 'all', 'one', 'none' volume:0.7# default volume, notice that player will remember user setting, default volume will not work after user set volume themselves list_max_height:320px# list max height list_folded:true
plugins: ... bbtalk: js:https://unpkg.com/bbtalk@0.1.5/dist/bbtalk.min.js# BBtalk.js appId:0KzOX4vC7Jsk6vzUGNeEiUaI-gzGzoHsz# your appID appKey:HwCiWuxfpvKiLm4teCUgTIba# your appKEY serverURLs:https://bbapi.heson10.com# Request Api 域名