Solitude Docs
参考

配置参考

按字段查阅当前主题的完整默认配置。

以下默认值来自主题 _config.yml。主题设置写入博客根目录 _config.solitude.yml,Hexo 标题、作者、语言与 URL 写入根 _config.yml。保留自己的值,升级时合并新增字段。

site

字段默认值
site.name.class"text"
site.name.custom"Solitude"
site.icon"/img/logo.png"
字段默认值
nav.groupnull
nav.menunull
nav.right.randomfalse
nav.right.customnull

hometop

字段默认值
hometop.enablefalse
hometop.recommendListnull

aside

字段默认值
aside.home.noSticky"about"
aside.home.Sticky"allInfo"
aside.post.noSticky"about"
aside.post.Sticky"newestPost"
aside.page.noSticky"about"
aside.page.Sticky"newestPost,allInfo"
aside.position1
aside.my_card.author.img"/img/logo.png"
aside.my_card.author.stickernull
aside.my_card.description"只有迎风,风筝才能飞得更高。"
aside.my_card.contentnull
aside.my_card.state.morning"✨ 早上好,新的一天开始了"
aside.my_card.state.noon"🍲 午餐时间"
aside.my_card.state.afternoon"🌞 下午好"
aside.my_card.state.night"早点休息"
aside.my_card.state.goodnight"晚安 😴"
aside.my_card.witty_wordsnull
aside.my_card.informationnull
aside.toc.posttrue
aside.toc.pagefalse
aside.toc.vaguetrue
aside.tags.enablefalse
aside.tags.limit20
aside.tags.highlight_listnull
aside.siteinfo.postcounttrue
aside.siteinfo.wordcountfalse
aside.siteinfo.pvtrue
aside.siteinfo.uvtrue
aside.siteinfo.updatetimetrue
aside.siteinfo.runtimeenabletrue
aside.siteinfo.runtime"2023-04-20 00:00:00"

page

字段默认值
page.errortrue
page.tagstrue
page.categoriestrue
page.archives0
page.links.async_threshold200
page.default.covernull

post

字段默认值
post.default.covernull
post.default.locate"China"
post.default.copyright.enabletrue
post.default.copyright.author"/img/logo.png"
post.default.copyright.license"CC BY-NC-SA 4.0"
post.default.copyright.licenurl"https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans"
post.ai.enablefalse
post.ai.modelName"小七 GPT"
post.meta.datefalse
post.meta.updatedfalse
post.meta.locatefalse
post.meta.wordcountfalse
post.meta.readtimefalse
post.meta.pvfalse
post.meta.commentfalse
post.award.enablefalse
post.award.appreciators"/about/"
post.award.titlenull
post.award.descnull
post.award.listnull
post.share.enablefalse
post.share.listnull
post.rssnull
post.covercolor.enablefalse
post.covercolor.mode"local"
post.covercolor.api"https://api.qjqq.cn/api/Imgcolor?img="
post.covercolor.time43200000
post.footer.enablefalse
post.footer.descnull
post.footer.button.enabletrue
post.footer.button.namenull
post.footer.button.url"/about/"

theme_color

字段默认值
theme_color.dark"#ffc848"
theme_color.light"#425AEF"
theme_color.nav_hover_text.dark"#1b1c20"
theme_color.nav_hover_text.light"#ffffff"

display_mode

字段默认值
display_mode.type"auto"
display_mode.universefalse

font

字段默认值
font.font-size"16px"
font.code-font-size"16px"
font.font-family"PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif"
font.code-font-family"\"monospace\", monospace"

lure

字段默认值
lure.enablefalse
lure.jump"404 Not Found"
lure.back"ヾ(≧∇≦*)ゝHey, hey, you fell for it."

expire

字段默认值
expire.enablefalse
expire.time30
expire.position"top"
expire.text_prev"This article expired "
expire.text_next" day ago, if the content does not match, please contact the webmaster to update it."

index_post_list

字段默认值
index_post_list.direction"column"
index_post_list.column2
index_post_list.cover"both"

related_post

字段默认值
related_post.enablefalse
related_post.limit2
related_post.date_type"created"

right_menu

字段默认值
right_menu.enablefalse
right_menu.commentBarragefalse
right_menu.ctrlOriginalMenufalse
right_menu.translatefalse
right_menu.custom_listnull

copy

字段默认值
copy.enablefalse
copy.copyright.enablefalse
copy.copyright.limit50

mermaid

字段默认值
mermaidfalse

chart

字段默认值
chartfalse

typeit

字段默认值
typeitfalse

console

字段默认值
console.enablefalse
console.recentComment.enablefalse
console.recentComment.storage0.2
console.card.tagstrue
console.card.archive"month"

translate

字段默认值
translate.enabletrue
translate.defaultEncoding2
translate.translateDelay0

rightside

字段默认值
rightside.enablefalse
rightside.hide.enablefalse
rightside.hide.translatefalse
rightside.hide.modefalse
rightside.hide.asidefalse
字段默认值
footer.information.authorfalse
footer.information.leftnull
footer.information.rightnull
footer.groupnull
footer.randomlinkfalse
footer.beiannull
footer.linksnull

errorpage

字段默认值
errorpage.img"/img/404.avif"
errorpage.text"=awa= Page Not Found"
errorpage.recommendListtrue

meting_api

字段默认值
meting_api"https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r"

capsule

字段默认值
capsule.enablefalse
capsule.id5144842535
capsule.server"netease"
capsule.type"playlist"
capsule.volume0.8

keyboard

字段默认值
keyboard.enablefalse
keyboard.listnull

lazyload

字段默认值
lazyload.enablefalse
lazyload.field"site"
lazyload.placeholder""
lazyload.errorimg"/img/error_load.avif"

loading

字段默认值
loading.fullpagefalse
loading.favicon"/img/logo.png"
loading.pacetrue

highlight

字段默认值
highlight.enabletrue
highlight.limit200
highlight.copytrue
highlight.expandtrue
highlight.theme"mac"
highlight.color"default"
字段默认值
lightboxfalse

fancybox

字段默认值
fancyboxfalse

mediumZoom

字段默认值
mediumZoomfalse

memorial

字段默认值
memorial.enablefalse
memorial.datenull

OpenGraph

字段默认值
OpenGraph.enablefalse
OpenGraph.optionsnull

wordcount

字段默认值
wordcountfalse

katex

字段默认值
katex.enablefalse
katex.per_pagefalse
katex.copytexfalse

verify_site

字段默认值
verify_sitenull

css_prefix

字段默认值
css_prefixtrue

extends

字段默认值
extends.headnull
extends.bodynull

pwa

字段默认值
pwa.enablefalse
pwa.manifest"/manifest.json"
pwa.theme_color"#006a73"
pwa.mask_icon"/img/pwa/favicon.png"
pwa.apple_touch_icon"/img/pwa/favicon.png"
pwa.bookmark_icon"/img/pwa/favicon.png"
pwa.favicon_32_32"/img/pwa/favicon_32.png"
pwa.favicon_16_16"/img/pwa/favicon_16.png"

comment

字段默认值
comment.usenull
comment.commentBarragefalse
comment.lazyloadfalse
comment.countfalse
comment.sidebarfalse
comment.pvfalse
comment.avatar"https://gravatar.com/avatar"
comment.hot_tip.enablefalse
comment.hot_tip.count3
comment.newest_comment.enabletrue
comment.newest_comment.storage0.5
comment.newest_comment.limit5

twikoo

字段默认值
twikoo.envIdnull
twikoo.regionnull
twikoo.styletrue
twikoo.accessTokennull
twikoo.optionnull

waline

字段默认值
waline.envIdnull
waline.pageviewfalse
waline.optionnull

valine

字段默认值
valine.appIdnull
valine.appKeynull
valine.serverURLsnull
valine.avatarnull
valine.visitorfalse
valine.styletrue
valine.optionnull

artalk

字段默认值
artalk.servernull
artalk.sitenull
artalk.optionnull

giscus

字段默认值
giscus.reponull
giscus.repo_idnull
giscus.category_idnull
giscus.theme.light"light"
giscus.theme.dark"dark"
giscus.optionnull
字段默认值
search.enablefalse
search.typenull
search.tagsnull
search.algolianull
search.local.preloadfalse
search.local.CDNnull
search.docsearch.appIdnull
search.docsearch.apiKeynull
search.docsearch.indexNamenull
search.docsearch.optionnull

music

字段默认值
music.enablefalse
music.id5144842535
music.server"netease"
music.type"playlist"
music.volume0.8
music.mutextrue
music.order"list"

envelope

字段默认值
envelope.enablefalse
envelope.line10
envelope.speed20
envelope.hovertrue
envelope.looptrue
envelope.page"/message/"

brevity

字段默认值
brevity.enablefalse
brevity.home_minifalse
brevity.musicfalse
brevity.page"/essay/"
brevity.style1
brevity.strip30

recent_comments

字段默认值
recent_comments.enablefalse
recent_comments.limit50
recent_comments.cache0.2
recent_comments.page"/recentcomments/"

busuanzi

字段默认值
busuanzifalse

busuanzi_use

字段默认值
busuanzi_use0

google_adsense

字段默认值
google_adsense.enablefalse
google_adsense.auto_adsfalse
google_adsense.enable_page_level_adstrue
google_adsense.aside_cardtrue
google_adsense.post_cardtrue
google_adsense.post_contenttrue
google_adsense.js"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
google_adsense.clientnull
google_adsense.slotnull

CDN

字段默认值
CDN.internal"local"
CDN.third_party"custom"
CDN.versiontrue
CDN.custom_format"https://cdn.jsdelivr.net/npm/${name}@${version}/${min_file}"
CDN.optionsnull

相关文档

站点配置 · 高级配置