From d3be997b8f7fbc68819cd53fcfeab8b8200027d6 Mon Sep 17 00:00:00 2001 From: xing Date: Thu, 2 Mar 2023 21:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/theme/twentyfifteen/posts/detail.gohtml | 2 +- internal/theme/twentyfifteen/twentyfifteen.go | 5 +---- internal/theme/twentyseventeen/twentyseventeen.go | 2 +- internal/theme/wp/index.go | 3 ++- internal/theme/wp/wp.go | 4 ++-- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/internal/theme/twentyfifteen/posts/detail.gohtml b/internal/theme/twentyfifteen/posts/detail.gohtml index 7fdc3af..91a09c1 100644 --- a/internal/theme/twentyfifteen/posts/detail.gohtml +++ b/internal/theme/twentyfifteen/posts/detail.gohtml @@ -1,7 +1,7 @@ {{template "layout/base" .}} {{define "content"}} - {{ if gt .post.Id 0}} + {{ if and .post gt .post.Id 0}}