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 -}}