mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-03 22:22:00 +08:00
1 parent
6656cb8c6f
commit
d49414a039
5 files changed
+14
-17
No files matched your search
@@ -11,5 +11,3 @@ if theme.disqus.enable
|
|||||||
s.src = "https://" + '!{theme.disqus.shortname}' +".disqus.com/embed.js";
|
s.src = "https://" + '!{theme.disqus.shortname}' +".disqus.com/embed.js";
|
||||||
s.setAttribute('data-timestamp', '' + +new Date());
|
s.setAttribute('data-timestamp', '' + +new Date());
|
||||||
(d.head || d.body).appendChild(s);
|
(d.head || d.body).appendChild(s);
|
||||||
if theme.disqus.count
|
|
||||||
script#dsq-count-scr(src="https://" + theme.disqus.shortname + ".disqus.com/count.js" async)
|
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
if theme.gitment && theme.gitment.enable
|
if theme.gitalk && theme.gitalk.enable
|
||||||
#gitment-container
|
#gitalk-container
|
||||||
script.
|
script.
|
||||||
var gitment = new Gitment({
|
var gitalk = new Gitalk({
|
||||||
|
clientID: '!{theme.gitalk.client_id}',
|
||||||
|
clientSecret: '!{theme.gitalk.client_secret}',
|
||||||
|
repo: '!{theme.gitalk.repo}',
|
||||||
|
owner: '!{theme.gitalk.owner}',
|
||||||
|
admin: '!{theme.gitalk.admin}',
|
||||||
id: md5(decodeURI(location.pathname)),
|
id: md5(decodeURI(location.pathname)),
|
||||||
owner: '!{theme.gitment.owner}',
|
language: '!{lang}'
|
||||||
repo: '!{theme.gitment.repo}',
|
|
||||||
oauth: {
|
|
||||||
client_id: '!{theme.gitment.client_id}',
|
|
||||||
client_secret: '!{theme.gitment.client_secret}'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
gitment.render('gitment-container')
|
gitalk.render('gitalk-container')
|
||||||
@@ -2,6 +2,7 @@ if theme.gitment && theme.gitment.enable
|
|||||||
#gitment-container
|
#gitment-container
|
||||||
script.
|
script.
|
||||||
var gitment = new Gitment({
|
var gitment = new Gitment({
|
||||||
|
id: md5(decodeURI(location.pathname)),
|
||||||
owner: '!{theme.gitment.owner}',
|
owner: '!{theme.gitment.owner}',
|
||||||
repo: '!{theme.gitment.repo}',
|
repo: '!{theme.gitment.repo}',
|
||||||
oauth: {
|
oauth: {
|
||||||
|
|||||||
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user