From 5ce707e4278f0d8d7f8abc002b75d15235429c55 Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 1 Mar 2023 23:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/theme/twentyseventeen/twentyseventeen.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/theme/twentyseventeen/twentyseventeen.go b/internal/theme/twentyseventeen/twentyseventeen.go index bf72e8d..b99142e 100644 --- a/internal/theme/twentyseventeen/twentyseventeen.go +++ b/internal/theme/twentyseventeen/twentyseventeen.go @@ -142,7 +142,7 @@ var header = reload.Vars(models.PostThumbnail{}) func getHeaderImage(h *wp.Handle) (r models.PostThumbnail) { img := header.Load() if img.Path != "" { - return r + return img } image, rand := h.GetCustomHeader() if image.Path != "" { @@ -156,7 +156,6 @@ func getHeaderImage(h *wp.Handle) (r models.PostThumbnail) { r.Path = helper.CutUrlHost(h.CommonThemeMods().ThemeSupport.CustomHeader.DefaultImage) r.Width = 2000 r.Height = 1200 - r.Sizes = "100vw" header.Store(r) return }