From 7ec2f02e6330a66e92125a2b766a9ee510dbdf9a Mon Sep 17 00:00:00 2001 From: nolleh Date: Sat, 25 May 2024 00:52:48 +0900 Subject: [PATCH] feat: if site configuration for disqus is set, use hugo embedded disqus template --- layouts/partials/comments.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 918451a1..d1b7fd17 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,3 +1,6 @@ {{- /* Comments area start */ -}} {{- /* to add comments read => https://gohugo.io/content-management/comments/ */ -}} +{{- if site.Config.Services.Disqus.Shortname }} +{{ template "_internal/disqus.html" . }} +{{- end}} {{- /* Comments area end */ -}}