# 网站url 默认是https://example.com 如果使用的是github pages 请设置成 https://xxx.github.io url:https://codersunny.com permalink::title/# 永久链接 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
highlight_theme:mac# 高亮主题: darker / pale night / light / ocean / mac / mac light / false highlight_copy:true# 是否展示复制按钮 copy button highlight_lang:true# 是否展示代码块语言 show the code language highlight_shrink:false# 是否展开代码框 true: shrink the code blocks / false: expand the code blocks | none: expand code blocks and hide the button highlight_height_limit:false# unit: px code_word_wrap:true# 是否关闭代码滚动条
显示效果如下:
复制相关配置
# copy settings # copyright: Add the copyright information after copied content (复制的内容加上版权信息) copy: enable:true# 是否开启网站复制权限 copyright: enable:true# 是否开启复制版权信息添加 limit_count:50# 超过这个字数会在复制内容后面加上版权信息
社交图标
# social settings (社交图标设置) # formal: # icon: link || the description # 书写格式:图标名:url || 描述性文字 social: fab fa-github:https://github.com/xxx||Github fas fa-envelope:mailto:xxx@gmail.com||Email
post_meta: page:# Home Page date_type:created# created or updated or both 主页文章日期是创建日或者更新日或都显示 date_format:date# date/relative 显示日期还是相对日期 categories:true# true or false 主页是否显示分类 tags:true# true or false 主页是否显示标签 label:true# true or false 显示描述性文字 post: date_type:created# created or updated or both 文章日期是创建日或者更新日或都显示 date_format:date# date/relative 显示日期还是相对日期 categories:true# true or false 文章是否显示分类 tags:true# true or false 文章頁是否显示标签 label:true# true or false 显示描述性文字
footer: owner: enable:true since:2020 custom_text:Hi,welcometomy<ahref="https://codersunny.com">blog</a>! copyright:true# Copyright of theme and framework
显示效果如下:
网站背景图片配置
# Website Background (设置网站背景) # can set it to color or image (可設置图片 或者 颜色) # The formal of image: url(http://xxxxxx.com/xxx.jpg) background:/images/background.png
aside: enable:true# 侧边栏是否开启 hide:false button:true mobile:true# 是否在手机上显示 position:left# 侧边栏位置 left or right archives:true card_author: enable:true description: button: enable:true icon:fabfa-github text:Github link:https://github.com/xxx card_announcement:# 公告栏内容 enable:true content:欢迎来到Sunny的技术杂货铺,如果喜欢记得收藏奥~ card_recent_post:# 最新文章 enable:true limit:5# 如果设置为0 将会展示所有文章 sort:date# date or updated sort_order:# Don't modify the setting unless you know how it works
显示效果如下:
简繁转换、夜间模式等配置
# Conversion between Traditional and Simplified Chinese (简繁转换) translate: enable:true default:简# 默认的按钮文字 # the language of website (1 - Traditional Chinese/ 2 - Simplified Chinese) defaultEncoding:2 # Time delay translateDelay:0 msgToTraditionalChinese:'繁'# 当前是简体时 按钮文字 msgToSimplifiedChinese:'简'# 当前是繁体时 按钮文字