From 28511efd081dba9dac8cbf8fa2c8135216264243 Mon Sep 17 00:00:00 2001 From: Reorx Date: Fri, 27 May 2022 21:33:40 +0800 Subject: control comment system in partials/comments.html --- layouts/partials/comments.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'layouts/partials/comments.html') diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 918451a..a07744a 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,3 +1,9 @@ -{{- /* Comments area start */ -}} -{{- /* to add comments read => https://gohugo.io/content-management/comments/ */ -}} -{{- /* Comments area end */ -}} +{{- /* You can add your own layouts/comments.html to override this file */ -}} + +{{- with site.Params.commentSystem.disqus -}} + {{- partial "disqus.html" . }} +{{- end -}} + +{{- with site.Params.commentSystem.telegramWidget -}} + {{- partial "telegram_widget.html" . }} +{{- end -}} -- cgit v1.2.3