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:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-05-20 18:59:19 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-05-20 18:59:19 +0300
commitd45e9fb4b01b18425664ca72fb100a88be71770b (patch)
treeaaa0fe661b3ce367c4bb30251f5e6329290a633a /layouts/partials
parentcd0d787c16ffcea36cff2d0b9fc35e8da55e6995 (diff)
Fix Valine not found in homepage.
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/journal.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/layouts/partials/journal.html b/layouts/partials/journal.html
index 1a252d3..9a1725f 100644
--- a/layouts/partials/journal.html
+++ b/layouts/partials/journal.html
@@ -71,7 +71,6 @@ app = new Vue({
})(navigator.userAgent || navigator.vendor || window.opera);
return check;
};
-
// From https://www.jdeal.cn/archives/Dark.html
var night = document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1");
if (night==""){
@@ -84,13 +83,12 @@ app = new Vue({
this.toggleDarkMode();
}
}
-
},
mounted() {
this.handleScroll();
this.handleResize();
this.mounted = true;
- {{ if .Site.Params.enableValine }}
+ {{ if and (.Site.Params.enableValine) (.IsPage) }}
new Valine({
el: '#vcomments',
appId: {{.Site.Params.valine.appId}},
@@ -98,9 +96,6 @@ app = new Vue({
requiredFields: ['nick','mail'],
enableQQ: true,
recordIP: true,
- {{ range $key, $value := .Site.Params.valine }}
- {{safeJS (print $key)}}:{{$value}},
- {{ end }}
})
{{ end }}
},