diff options
author | Rise <8315221+AmazingRise@users.noreply.github.com> | 2022-05-14 19:29:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-14 19:29:17 +0300 |
commit | d8121f097d8f87c6e191ccfe070ce64bb7699e1e (patch) | |
tree | 0910f68ec55cd219ea0c38e581e6b407993261f6 | |
parent | c14fdc977d76a9c32b70ad42747599c6e6f50635 (diff) | |
parent | fbee789806657b45affa963f84b5bb99756f9e21 (diff) |
Merge pull request #122 from SnailPoet/SnailPoet
fix a Gitalk error "Container not found"
-rw-r--r-- | layouts/partials/head.html | 2 |
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> |