Skip to content

Commit

Permalink
feat: 更新背景配置
Browse files Browse the repository at this point in the history
  • Loading branch information
everfu committed Jul 11, 2024
1 parent 89da235 commit 17fc6f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,7 @@ expire:
# Background image
background:
enable: false
opacity: .2
dark: https://bu.dusays.com/2023/09/29/651685ce667d1.jpg
light: https://bu.dusays.com/2023/09/29/651685cc18d39.jpg

Expand Down
3 changes: 2 additions & 1 deletion scripts/event/merge_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ hexo.extend.filter.register('before_generate', () => {
},
background: {
enable: false,
img: 'https://img.truimo.com/2022/807b270630a51.jpg',
dark: 'https://bu.dusays.com/2023/09/29/651685ce667d1.jpg',
light: 'https://bu.dusays.com/2023/09/29/651685cc18d39.jpg',
opacity: .2,
},
CDN: {
Expand Down
2 changes: 1 addition & 1 deletion source/css/_global/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ if hexo-config('background.enable')
#global_bg
position fixed
z-index 999
opacity .2
opacity hexo-config('background.opacity')
width 100%
height 100%
background-image url(hexo-config('background.light'))
Expand Down

0 comments on commit 17fc6f2

Please sign in to comment.