-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. fix bugs of valine
- Loading branch information
Showing
5 changed files
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
if theme.gitment && theme.gitment.enable | ||
#gitment-container | ||
if theme.gitalk && theme.gitalk.enable | ||
#gitalk-container | ||
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)), | ||
owner: '!{theme.gitment.owner}', | ||
repo: '!{theme.gitment.repo}', | ||
oauth: { | ||
client_id: '!{theme.gitment.client_id}', | ||
client_secret: '!{theme.gitment.client_secret}' | ||
} | ||
language: '!{lang}' | ||
}) | ||
gitment.render('gitment-container') | ||
gitalk.render('gitalk-container') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
if theme.valine && theme.valine.enable | ||
#vcomment.vcomment | ||
script(src='https://cdn.jsdelivr.net/npm/leancloud-storage/dist/av-min.js') | ||
script(src='https://cdn.jsdelivr.net/npm/[email protected]/dist/Valine.min.js') | ||
script(src='https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js') | ||
script. | ||
var notify = '#{ theme.valine.notify }' == true ? true : false; | ||
var verify = '#{ theme.valine.verify }' == true ? true : false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters