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:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index bf58d73..c2ee7d4 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -113,8 +113,12 @@ $(
<script src='https://unpkg.com/valine@1.4.14/dist/Valine.min.js'></script>
{{ end }}
-{{ if .Site.Params.disqusShortname }}
+{{ if and (.Site.Params.disqusShortname (.IsPage) }}
<script src="https://cdn.jsdelivr.net/npm/vue-disqus@3/dist/vue-disqus.js"></script>
{{ end }}
+{{ if and (.Site.Params.enableTwikoo) (.IsPage) }}
+<script src="https://cdn.jsdelivr.net/npm/twikoo@1.3.0/dist/twikoo.all.min.js"></script>
+{{ end }}
+
</head>