hexo-theme-shokax 0.0.2-alpha3 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,9 +7,9 @@ mixin CommentRender()
|
|
7
7
|
script(type="text/javascript" data-pjax).
|
8
8
|
setTimeout(function () {
|
9
9
|
twikoo.init({
|
10
|
-
envId: '#{
|
10
|
+
envId: '#{ theme.twikoo.envId }',
|
11
11
|
el: '#tcomments',
|
12
|
-
region: '#{
|
12
|
+
region: '#{theme.twikoo.region}'
|
13
13
|
})
|
14
14
|
}, 1000)
|
15
15
|
else if wl
|
@@ -21,13 +21,13 @@ mixin CommentRender()
|
|
21
21
|
init({
|
22
22
|
el: '#wcomments',
|
23
23
|
serverURL: '#{hexo.theme.config.waline.serverURL}',
|
24
|
-
lang: '#{hexo.theme.config.waline
|
25
|
-
locale: #{hexo.theme.config.waline
|
26
|
-
emoji: #{hexo.theme.config.waline
|
27
|
-
meta: #{hexo.theme.config.waline
|
28
|
-
requiredMeta: #{hexo.theme.config.waline
|
29
|
-
wordLimit: #{hexo.theme.config.waline
|
30
|
-
pageSize: #{hexo.theme.config.waline
|
24
|
+
lang: '#{hexo.theme.config.waline.lang}',
|
25
|
+
locale: #{hexo.theme.config.waline.locale},
|
26
|
+
emoji: #{hexo.theme.config.waline.emoji},
|
27
|
+
meta: #{hexo.theme.config.waline.meta},
|
28
|
+
requiredMeta: #{hexo.theme.config.waline.requiredMeta},
|
29
|
+
wordLimit: #{hexo.theme.config.waline.wordLimit},
|
30
|
+
pageSize: #{hexo.theme.config.waline.pageSize}
|
31
31
|
});
|
32
32
|
}, 1000)
|
33
33
|
else if gt
|
@@ -41,7 +41,7 @@ mixin CommentRender()
|
|
41
41
|
admin: #{theme.gitalk.admin},
|
42
42
|
id: location.pathname, // Ensure uniqueness and length less than 50
|
43
43
|
distractionFreeMode: false, // Facebook-like distraction free mode
|
44
|
-
proxy: "#{theme.gitalk
|
44
|
+
proxy: "#{theme.gitalk.proxy || undefined}"
|
45
45
|
});
|
46
46
|
gitalk.render("gtcomments")
|
47
47
|
else if gs
|
@@ -51,13 +51,13 @@ mixin CommentRender()
|
|
51
51
|
data-repo-id="#{theme.giscus.repoId}"
|
52
52
|
data-category="#{theme.giscus.category}"
|
53
53
|
data-category-id="#{theme.giscus.categoryId}"
|
54
|
-
data-mapping="#{theme.giscus.mapping
|
55
|
-
data-strict="#{theme.giscus.strict
|
56
|
-
data-reactions-enabled="#{theme.giscus.reactionsEnabled
|
57
|
-
data-emit-metadata="#{theme.giscus.emitMetadata
|
58
|
-
data-input-position="#{theme.giscus.inputPosition
|
59
|
-
data-theme="#{theme.giscus.commentTheme
|
60
|
-
data-lang="#{theme.giscus.lang
|
54
|
+
data-mapping="#{theme.giscus.mapping}"
|
55
|
+
data-strict="#{theme.giscus.strict}"
|
56
|
+
data-reactions-enabled="#{theme.giscus.reactionsEnabled}"
|
57
|
+
data-emit-metadata="#{theme.giscus.emitMetadata}"
|
58
|
+
data-input-position="#{theme.giscus.inputPosition}"
|
59
|
+
data-theme="#{theme.giscus.commentTheme}"
|
60
|
+
data-lang="#{theme.giscus.lang}"
|
61
61
|
data-loading="lazy"
|
62
62
|
crossorigin="anonymous"
|
63
63
|
async
|
@@ -48,4 +48,9 @@ else if gt
|
|
48
48
|
link(rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css")
|
49
49
|
script(src="https://unpkg.com/gitalk/dist/gitalk.min.js")
|
50
50
|
|
51
|
-
|
51
|
+
- var qw = theme.qweather.enable
|
52
|
+
if qw
|
53
|
+
style.
|
54
|
+
img[data-v-7d48daab] {
|
55
|
+
max-width: 2em !important;
|
56
|
+
}
|