From ff711a0be216dddacb039bc58f492c42480484ae Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 21 Apr 2022 22:53:33 +0800 Subject: add comments_js partial --- layouts/partials/comments_js.html | 3 +++ layouts/partials/footer.html | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/comments_js.html diff --git a/layouts/partials/comments_js.html b/layouts/partials/comments_js.html new file mode 100644 index 0000000..cca3404 --- /dev/null +++ b/layouts/partials/comments_js.html @@ -0,0 +1,3 @@ +{{- /* Comments js area start */ -}} +{{- /* to add comments read => https://gohugo.io/content-management/comments/ */ -}} +{{- /* Comments js area end */ -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 28d3086..03a932c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -223,11 +223,16 @@ {{- end -}} +{{ if (.Param "comments") }} +{{ partial "comments_js.html" . }} +{{ end }} + {{- /* Search */}} {{- if (eq .Layout `search`) -}} @@ -249,7 +254,15 @@ - + {{- end }} {{- end -}} -- cgit v1.2.3