diff --git a/scss/topic-cards.scss b/scss/topic-cards.scss index 3302a12..b4cc560 100644 --- a/scss/topic-cards.scss +++ b/scss/topic-cards.scss @@ -765,6 +765,14 @@ body.user-messages-page { position: relative; } +#main-outlet { + @if $home_bg_image != "" { + background-image: url($home_bg_image); + background-size: cover; + background-position: center; + } +} + .container.list-container{ position: relative; } diff --git a/settings.yml b/settings.yml index 343fd3b..0886dc5 100644 --- a/settings.yml +++ b/settings.yml @@ -9,3 +9,9 @@ search_experience: - search_field - search_icon description: "Overrides the core `search experience` site setting" + +home_bg_image: + type: upload + default: "" + description: "首页背景图" +