Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRise <8315221+AmazingRise@users.noreply.github.com>2022-05-14 19:29:17 +0300
committerGitHub <noreply@github.com>2022-05-14 19:29:17 +0300
commitd8121f097d8f87c6e191ccfe070ce64bb7699e1e (patch)
tree0910f68ec55cd219ea0c38e581e6b407993261f6
parentc14fdc977d76a9c32b70ad42747599c6e6f50635 (diff)
parentfbee789806657b45affa963f84b5bb99756f9e21 (diff)
Merge pull request #122 from SnailPoet/SnailPoet
fix a Gitalk error "Container not found"
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 36cc6b5..c77986f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -94,7 +94,7 @@
<script src="{{"/js/toc.js" | relURL}}"></script>
{{ end }}
-{{ if and (.Site.Params.enableGitalk) (.IsPage) }}
+{{ if and ( and ( .Site.Params.enableGitalk ) ( .IsPage ) ) ( or ( not ( isset .Params "comment" ) ) ( eq .Params.comment true ) ) }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script src="{{"/vendor/js/md5.min.js" | relURL}}"></script>