diff --git a/internal/plugins/wphandle/enlightjs/enlighterjs.go b/internal/plugins/wphandle/enlightjs/enlighterjs.go index 8a994d5..7f6c5cd 100644 --- a/internal/plugins/wphandle/enlightjs/enlighterjs.go +++ b/internal/plugins/wphandle/enlightjs/enlighterjs.go @@ -10,7 +10,7 @@ func EnlighterJS(h *wp.Handle) { return `` }) - h.PushGroupFooterScript(20, func(h *wp.Handle) string { + h.PushGroupFooterScript(10, func(h *wp.Handle) string { return str.Join(``, "\n", enlighterjs) }) } diff --git a/internal/theme/twentyfifteen/posts/detail.gohtml b/internal/theme/twentyfifteen/posts/detail.gohtml index ce9c883..b0935be 100644 --- a/internal/theme/twentyfifteen/posts/detail.gohtml +++ b/internal/theme/twentyfifteen/posts/detail.gohtml @@ -56,7 +56,7 @@ {{end}} - {{if eq .post.CommentStatus "open"}} + {{if and (eq .post.CommentStatus "open") (eq ( "thread_comments" |getOption ) "1")}}
发表回复 diff --git a/internal/theme/twentyseventeen/layout/base.gohtml b/internal/theme/twentyseventeen/layout/base.gohtml index bf92e71..fec5e20 100644 --- a/internal/theme/twentyseventeen/layout/base.gohtml +++ b/internal/theme/twentyseventeen/layout/base.gohtml @@ -40,24 +40,12 @@