post_meta: page: date_type: both # created or updated or both 主页文章日期是创建日或者更新日或都显示 date_format: relative # date/relative 显示日期还是相对日期 categories: true# true or false 主页是否显示分类 tags: true# true or false 主页是否显示标签 label: true# true or false 显示描述性文字 post: date_type: both # created or updated or both 文章页日期是创建日或者更新日或都显示 date_format: relative # date/relative 显示日期还是相对日期 categories: true# true or false 文章页是否显示分类 tags: true# true or false 文章页是否显示标签 label: true# true or false 显示描述性文字
# anchor # when you scroll in post , the url will update according to header id. anchor: true
文章过期提醒
可设置是否显示文章过期提醒,以更新时间为基准。
1 2 3 4 5 6 7 8
# Displays outdated notice for a post (文章过期提醒) noticeOutdate: enable: true style: flat # style: simple/flat limit_day: 365 # 距离更新时间多少天才显示文章过期提醒 position: top # position: top/bottom message_prev: It has been # 天数之前的文字 message_next: days since the last update, the content of the article may be outdated. # 天数之后的文字
文章分页按钮
1 2 3 4 5 6
# post_pagination (分页) # value: 1 || 2 || false # false:为关闭分页按钮;1:下一篇显示的是旧文章;2:下一篇显示的是新文章 # 1: The 'next post' will link to old post # 2: The 'next post' will link to new post # false: disable pagination post_pagination: false
文章内容复制相关配置
1 2 3 4 5 6 7
# copy settings # copyright: Add the copyright information after copied content (复制的内容后面加上版权信息) copy: enable: true# 是否开启网站复制权限 copyright: # 复制的内容后面加上版权信息 enable: true# 是否开启复制版权信息添加 limit_count: 50 # 字数限制,当复制文字大于这个字数限制时,将在复制的内容后面加上版权信息
footer: owner: enable: true since: 2022 # 站点起始时间 custom_text: # 是一个给你用来在页脚自定义文本的选项。通常你可以在这里写声明文本等,支持 HTML。 copyright: false# Copyright of theme and framework
右下角按钮
简繁转换
1 2 3 4 5 6 7 8 9 10 11 12 13
translate: enable: false # 默认按钮显示文字(网站是简体,应设置为'default: 繁') default: 繁 # the language of website (1 - Traditional Chinese/ 2 - Simplified Chinese) # 网站默认语言,1: 繁体中文, 2: 简体中文 defaultEncoding: 2 # Time delay 延迟时间,若不在前, 要设定延迟翻译时间, 如100表示100ms,默认为0 translateDelay: 0 # 当文字是简体时,按钮显示的文字 msgToTraditionalChinese: '繁' # 当文字是繁体时,按钮显示的文字 msgToSimplifiedChinese: '簡'
夜间模式
1 2 3 4 5 6 7 8 9 10
# dark mode darkmode: enable: false # dark 和 light 两种模式切换按钮 button: true # Switch dark/light mode automatically (自動切換 dark mode和 light mode) # autoChangeMode: 1 Following System Settings, if the system doesn't support dark mode, it will switch dark mode between 6 pm to 6 am # autoChangeMode: 2 Switch dark mode between 6 pm to 6 am # autoChangeMode: false autoChangeMode: false
v2.0.0 开始增加一个选项,可开启自动切换light mode 和 dark mode。
autoChangeMode: 1 跟随系统而变化,不支持的浏览器/系统将按照时间晚上6点到早上6点之间切换为 dark mode。
autoChangeMode: 2只按照时间 晚上6点到早上6点之间切换为 dark mode,其余时间为light mode。
aside: enable: true hide: false button: true mobile: true# display on mobile position: right # left or right display: archive: true tag: true category: true card_author: enable: true description: button: enable: true icon: # fab fa-github text: 🛴前往小家... link: https://github.com/fomalhaut1998 card_announcement: enable: true content: <center>主域名:<br><a href="https://www.fomal.cc"><b><font color="#5ea6e5">fomal.cc</font></b></a> | <a href="https://www.fomal.cn"><b><font color="#5ea6e5">fomal.cn</font></b></a><br>备用域名:<br><a href="https://blog.fomal.cc"><b><font color="#5ea6e5">blog.fomal.cc</font></b></a><br><a href="https://aa.fomal.cc"><b><font color="#5ea6e5">aa.fomal.cc</font></b></a><br><a href="https://bb.fomal.cc"><b><font color="#5ea6e5">bb.fomal.cc</font></b></a><br><a href="mailto:admin@fomal.cn">📬:<b><font color="#a591e0">admin@fomal.cn</font></b></a></center> card_recent_post: enable: false limit: 3 # if set 0 will show all sort: date# date or updated sort_order: # Don't modify the setting unless you know how it works card_categories: enable: false limit: 8 # if set 0 will show all expand: none # none/true/false sort_order: # Don't modify the setting unless you know how it works card_tags: enable: false limit: 20 # if set 0 will show all color: true sort_order: # Don't modify the setting unless you know how it works card_archives: enable: false type: monthly # yearly or monthly format: MMMM YYYY # eg: YYYY年MM月 order: -1 # Sort of order. 1, asc for ascending; -1, desc for descending limit: 8 # if set 0 will show all sort_order: # Don't modify the setting unless you know how it works card_webinfo: enable: true post_count: true last_push_date: true sort_order: # Don't modify the setting unless you know how it works card_weibo: enable: true
# Time difference between publish date and now (網頁運行時間) # Formal: Month/Day/Year Time or Year/Month/Day Time runtimeshow: enable: false publish_date: 8/9/2022 00:00:00 ##网页开通时间 #格式: 月/日/年 时间 #也可以写成 年/月/日 时间
canvas_nest: enable: true color: '0,0,255'#color of lines, default: '0,0,0'; RGB values: (R,G,B).(note: use ',' to separate.) opacity: 0.7 # the opacity of line (0~1), default: 0.5. zIndex: -1 # z-index property of the background, default: -1. count: 99 # the number of lines, default: 99. mobile: false# false 手機端不顯示 true 手機端顯示
# Font settings for the site title and site subtitle # https://fonts.googleapis.com/css?family=Titillium+Web&display=swap # Titillium Web, 'PingFang SC' , 'Hiragino Sans GB' , 'Microsoft JhengHei' , 'Microsoft YaHei' , sans-serif # 左上角網站名字 主頁居中網站名字 blog_title_font: font_link: font-family: var(--global-font)
网站副标题
可设置主页中显示的网站副标题或者喜欢的座右铭
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# the subtitle on homepage (主頁subtitle) subtitle: enable: true # Typewriter Effect (打字效果) effect: true # loop (循環打字) loop: true # source 調用第三方服務 # source: false 關閉調用 # source: 1 調用一言網的一句話(簡體) https://hitokoto.cn/ # source: 2 調用一句網(簡體) http://yijuzhan.com/ # source: 3 調用今日詩詞(簡體) https://www.jinrishici.com/ # subtitle 會先顯示 source , 再顯示 sub 的內容 source: false # 如果關閉打字效果,subtitle 只會顯示 sub 的第一行文字 sub: - "Welcome to Fomalhaut🥝のTiny Home!🤣🤣🤣" - "Hope you have a nice day!🍭🍭🍭"