diff options
author | amzrk2 | 2020-05-18 11:14:45 +0800 |
---|---|---|
committer | amzrk2 | 2020-05-18 11:14:45 +0800 |
commit | ee964a15351eab53f9a26dfc4098f4cf69cefe40 (patch) | |
tree | 6a74d9a51b14c4d71a1316fb83d4311741f4d47b /layouts | |
parent | 4da3a18feb9d6be806d92a92230e3722fe76062a (diff) | |
download | hugo-theme-fuji-ee964a15351eab53f9a26dfc4098f4cf69cefe40.tar.gz hugo-theme-fuji-ee964a15351eab53f9a26dfc4098f4cf69cefe40.tar.bz2 hugo-theme-fuji-ee964a15351eab53f9a26dfc4098f4cf69cefe40.zip |
Update to disable comments for designated post
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 87b6d62..e2b0fc1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,6 +23,8 @@ </blockquote> </div> {{ end }} +{{ if ne .Params.noComments true }} {{ partial "comment-utterances.html" . }} {{ partial "comment-disqus.html" . }} +{{ end }} {{ end }}
\ No newline at end of file diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 1a8a28c..6bcdd8b 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -8,6 +8,7 @@ </script> <!-- utterances comment loading indicator --> +{{ if ne .Params.noComments true }} {{ if and (.IsPage) (.Site.Params.utterancesRepo) }} <script> $(function () { @@ -34,6 +35,7 @@ }); </script> {{ end }} +{{ end }} <!-- toc smooth scroll & APlayer cjk html anchor fix --> {{ if in .Site.Params.mainSections .Type }} |