标签页:输入 hexo new page tags,将 source/tags/index.md 中添加 type: "tags"
分类页同理:输入 hexo new categories tags,将 source/categories/index.md 中添加 type: "categories"
404 页面
可以开启 404 页面:
_config.butterfly.yml
# A simple 404 page error_404: enable:true subtitle:"页面没有找到" background:
主题配置
修改网站各种资料,例如标题、副标题和邮箱等个人资料:
_config.yml
# Site title:old-driver-zeroの小屋 subtitle:'欢迎来到old-driver-zeroの小屋作客' description:'MyBlog' keywords:ACGComputerLife author:old_driver_zero language:zh-CN timezone:'Asia/Shanghai'
# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' url:https://old-driver-zero.github.io
highlight_theme:light# darker / pale night / light / ocean / mac / mac light / false highlight_copy:true# 复制按钮 highlight_lang:true# 展示代码语言 highlight_shrink:false# 展开 / 关闭按钮 highlight_height_limit:false# 代码高度限制,单位: px code_word_wrap:true# 自动换行
社交图标:
_config.butterfly.yml
social: fab fa-github:https://github.com/xxxxx||Github||"#hdhfbb" fas fa-envelope:mailto:xxxxxx@gmail.com||Email||"#000000"
头像:
_config.butterfly.yml
avatar: img:/img/avatar.png effect:true# 头像会一直转圈
页面 meta 显示:
_config.butterfly.yml
post_meta: page:# Home 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:date# date/relative 顯示日期還是相對日期 categories:true# true or false 文章頁是否顯示分類 tags:true# true or false 文章頁是否顯示標籤 label:true# true or false 顯示描述性文字
开启图片描述:
photofigcaption:true
文章分页按钮:
# post_pagination (分页) # value: 1 || 2 || false # 1: The 'next post' will link to old post # 2: The 'next post' will link to new post # false: disable pagination post_pagination:1
页脚设置:
# Footer Settings # -------------------------------------- footer: owner: enable:true since:2022 custom_text: copyright:false# Copyright of theme and framework
网站运行时间:
# Time difference between publish date and now (網頁運行時間) # Formal: Month/Day/Year Time or Year/Month/Day Time runtimeshow: enable:true publish_date:2022/10/3120:00
# Global font settings # Don't modify the following settings unless you know how they work (非必要不要修改) font: global-font-size: code-font-size: font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Lato,Roboto,"PingFang SC","Microsoft JhengHei","Microsoft YaHei",sans-serif code-font-family:consolas,Menlo,"PingFang SC","Microsoft JhengHei","Microsoft YaHei",sans-serif
加载动画
# 加载动画 Loading Animation preloader: enable:false # source # 1. fullpage-loading # 2. pace (progress bar) source:1 # pace theme (see https://codebyzach.github.io/pace/) pace_css_url:
# Pjax [Beta] # It may contain bugs and unstable, give feedback when you find the bugs. # https://github.com/MoOx/pjax pjax: enable:true exclude: -/music/ -/no-pjax/