From 0ba3f2b4f33fe049510322033ba9171b125b1531 Mon Sep 17 00:00:00 2001 From: ember <1279347317@qq.com> Date: Thu, 20 Feb 2025 20:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=84=E8=AE=BA=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/shortcodes/comment.html | 10 ++++++++++ .../layouts/_default/single.html | 4 ++++ .../layouts/partials/blog-comment.html | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 layouts/shortcodes/comment.html create mode 100644 themes/hugo-theme-stack-master/layouts/partials/blog-comment.html diff --git a/layouts/shortcodes/comment.html b/layouts/shortcodes/comment.html new file mode 100644 index 0000000..5e27b8e --- /dev/null +++ b/layouts/shortcodes/comment.html @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/themes/hugo-theme-stack-master/layouts/_default/single.html b/themes/hugo-theme-stack-master/layouts/_default/single.html index 5f300bf..5a43ab8 100644 --- a/themes/hugo-theme-stack-master/layouts/_default/single.html +++ b/themes/hugo-theme-stack-master/layouts/_default/single.html @@ -30,6 +30,10 @@ {{ partial "article/components/links" . }} {{ end }} + {{ if not (eq .Params.comment false) }} + {{ partial "blog-comment" . }} + {{ end }} + {{ partial "article/components/related-content" . }} {{ if not (eq .Params.comments false) }} diff --git a/themes/hugo-theme-stack-master/layouts/partials/blog-comment.html b/themes/hugo-theme-stack-master/layouts/partials/blog-comment.html new file mode 100644 index 0000000..67ba658 --- /dev/null +++ b/themes/hugo-theme-stack-master/layouts/partials/blog-comment.html @@ -0,0 +1,10 @@ + + +
+ +
+ \ No newline at end of file