add site|post background

This commit is contained in:
2024-08-01 16:45:30 +08:00
parent 3dd2927bd2
commit 8ddeba0de6
26 changed files with 1171 additions and 351 deletions

View File

@@ -51,43 +51,43 @@ avatar:
disable_top_img: false
# The banner image of home page
index_img:
index_img: /img/site01.jpg
# If the banner of page not setting, it will show the top_img
default_top_img:
default_top_img: /img/site01.jpg
# The banner image of archive page
archive_img:
archive_img: /img/site01.jpg
# If the banner of tag page not setting, it will show the top_img
# note: tag page, not tags page (子標籤頁面的 top_img)
tag_img:
tag_img: /img/site01.jpg
# The banner image of tag page
# format:
# - tag name: xxxxx
tag_per_img:
tag_per_img: /img/site01.jpg
# If the banner of category page not setting, it will show the top_img
# note: category page, not categories page (子分類頁面的 top_img)
category_img:
category_img: /img/site01.jpg
# The banner image of category page
# format:
# - category name: xxxxx
category_per_img:
category_per_img: /img/site01.jpg
cover:
# display the cover or not (是否顯示文章封面)
index_enable: true
aside_enable: true
archives_enable: true
index_enable: false
aside_enable: false
archives_enable: false
# the position of cover in home page (封面顯示的位置)
# left/right/both
position: both
# When cover is not set, the default cover is displayed (當沒有設置cover時默認的封面顯示)
default_cover:
- https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg
# default_cover:
# - https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg
# Replace Broken Images (替換無法顯示的圖片)
error_img:
@@ -96,7 +96,7 @@ error_img:
# A simple 404 page
error_404:
enable: true
enable: false
subtitle: 'Page Not Found'
background: https://i.loli.net/2020/05/19/aKOcLiyPl2JQdFD.png
@@ -365,13 +365,13 @@ algolia_search:
# Local search
local_search:
enable: false
enable: true
# Preload the search data when the page loads.
preload: false
preload: true
# Show top n results per article, show all results by setting to -1
top_n_per_article: 1
# Unescape html strings to the readable one.
unescape: false
unescape: true
CDN:
# Docsearch
@@ -641,10 +641,10 @@ text_align_justify: false
# Website Background (設置網站背景)
# can set it to color or image (可設置圖片 或者 顔色)
# The formal of image: url(http://xxxxxx.com/xxx.jpg)
background:
#background: /img/site01.jpg
background: url(https://file.shenjianl.cn/assets/site.jpg)
# Footer Background
footer_bg: false
footer_bg: transparent
# Add mask to header or footer (为 header 或 footer 添加黑色半透遮罩)
mask:
@@ -660,7 +660,7 @@ enter_transitions: true
# Typewriter Effect (打字效果)
# https://github.com/disjukr/activate-power-mode
activate_power_mode:
enable: false
enable: true
colorful: true # open particle animation (冒光特效)
shake: true # open shake (抖動特效)
mobile: false
@@ -721,10 +721,10 @@ display_mode: light
# Beautify (美化頁面顯示)
beautify:
enable: false
enable: true
field: post # site/post
title-prefix-icon: # '\f0c1'
title-prefix-icon-color: # '#F47466'
title-prefix-icon: '\f0c1'
title-prefix-icon-color: '#F47466'
# Global font settings
# Don't modify the following settings unless you know how they work (非必要不要修改)
@@ -748,7 +748,7 @@ hr_icon:
# the subtitle on homepage (主頁subtitle)
subtitle:
enable: false
enable: true
# Typewriter Effect (打字效果)
effect: true
# Customize typed.js (配置typed.js)
@@ -756,7 +756,7 @@ subtitle:
typed_option:
# source 調用第三方服務
# source: false 關閉調用
# source: 1 調用一言網的一句話(簡體) https://hitokoto.cn/
# source: 1 調用一言網的一句話(簡體) https://hitokoto.cn/
# source: 2 調用一句網(簡體) https://yijuzhan.com/
# source: 3 調用今日詩詞(簡體) https://www.jinrishici.com/
# subtitle 會先顯示 source , 再顯示 sub 的內容
@@ -766,7 +766,7 @@ subtitle:
# Loading Animation (加載動畫)
preloader:
enable: false
enable: true
# source
# 1. fullpage-loading
# 2. pace (progress bar)