最大布局宽度 blog/_config.volantis.yml style: ... max_width: 1080px
网页所呈现的内容的最大宽度,即 body 和 sidebar 的宽度之和。
抗锯齿 blog/_config.volantis.yml style: ... font_smoothing: true
自定义光标样式 blog/_config.volantis.yml style: ... cursor: enable: true text: https://gcore.jsdelivr.net/gh/inkss/common@master/cursor/text.png pointer: https://gcore.jsdelivr.net/gh/inkss/common@master/cursor/pointer.png default: https://gcore.jsdelivr.net/gh/inkss/common@master/cursor/left_ptr.png not-allowed: https://gcore.jsdelivr.net/gh/inkss/common@master/cursor/circle.png zoom-out: https://gcore.jsdelivr.net/gh/inkss/common@master/cursor/zoom-out.png zoom-in: https://gcore.jsdelivr.net/gh/inkss/common@master/cursor/zoom-in.png grab: https://gcore.jsdelivr.net/gh/inkss/common@master/cursor/openhand.png
导航栏样式 您可以设置导航栏的高度以及视觉特效,视觉特效目前可选的有:
shadow :卡片阴影。floatable :当鼠标移动到容器内时,呈现出浮起来的效果。blur :背景模糊效果(毛玻璃),当浏览器不支持时显示为不透明。blog/_config.volantis.yml style: ... navbar: height: 64px effect: [shadow , blur ]
滚动条样式 blog/_config.volantis.yml style: ... scrollbar: size: 4px border: 2px color: '#2196f3' hover: '#ff5722'
侧边栏样式 视觉特效参数同上,值得注意的是:卡片的 floatable
效果和 blur
效果相冲突。
blog/_config.volantis.yml style: ... sidebar: effect: [shadow ]
正文区域样式 视觉特效参数同上,值得注意的是:卡片的 floatable
效果和 blur
效果相冲突。您可以在 language: true
这里设置代码块显示语言名称。text_align
可以设置 h1/h2/h3/h4/p 的文字对齐方向。
blog/_config.volantis.yml style: ... body: effect: [shadow ] highlight: language: true copy_btn: true text_align: h1: left h2: left h3: left h4: left p: justify note: icon: '\f054' color: ''
布局间距 您可以设置几种标题的布局间距 h2/h3/h4、段落间距 line、区块内部的段落间距 inline。
blog/_config.volantis.yml style: ... gap: h2: 48px h3: 32px h4: 16px paragraph: 1rem row: .5rem
自定义字体 您可以自定义正文和代码字体。
blog/_config.volantis.yml style: ... fontfamily: logofont: fontfamily: '"Varela Round", "PingFang SC", "Microsoft YaHei", Helvetica, Arial' name: 'Varela Round' url: https://gcore.jsdelivr.net/gh/volantis-x/cdn-fonts/VarelaRound/VarelaRound-Regular.ttf weight: normal style: normal bodyfont: fontfamily: 'UbuntuMono, "PingFang SC", "Microsoft YaHei", Helvetica, Arial' name: 'UbuntuMono' url: https://gcore.jsdelivr.net/gh/volantis-x/cdn-fonts/UbuntuMono/UbuntuMono-Regular.ttf weight: normal style: normal codefont: fontfamily: 'Menlo, Monaco' name: 'Monaco' url: https://gcore.jsdelivr.net/gh/volantis-x/cdn-fonts/Monaco/Monaco.ttf weight: normal style: normal
自定义颜色 blog/_config.volantis.yml style: ... color: site: '#21232F' card: '#444' text: '#fff' theme: '#ff9800' link: '#1BCDFC' hover: '#ff5722' inner: '#333' block: '#555' inlinecode: yellow codeblock: '#555' p: '#ccc'
自定义右键菜单 blog/_config.volantis.yml rightmenu: enable: true layout: [home , help , examples , contributors , hr , source_docs , source_theme , hr , print , hr , music ] print: name: 打印页面 icon: fa fa-print onclick: document.execCommand('print') help: name: 常见问题 icon: fa fa-question url: https://volantis.js.org/faqs/ examples: name: 示例博客 icon: fa fa-rss url: https://volantis.js.org/examples/ contributors: name: 加入社区 icon: fa fa-fan fa-spin url: https://volantis.js.org/contributors/ source_docs: name: 本站源码 icon: fa fa-code-branch url: https://github.com/volantis-x/volantis-docs/ source_theme: name: 主题源码 icon: fa fa-code-branch url: https://github.com/volantis-x/hexo-theme-volantis/