-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from tuchg/master
add some custom options & update gitalk and add 2 options
- Loading branch information
Showing
6 changed files
with
21 additions
and
8 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
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
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,6 +1,6 @@ | ||
<% if (typeof(script) !== 'undefined' && script) { %> | ||
<!-- <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css"> --> | ||
<script src="//cdn.jsdelivr.net/npm/gitalk@1.4.0/dist/gitalk.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/[email protected]/js/md5.min.js"></script> | ||
<script type="text/javascript"> | ||
var gitalk = new Gitalk({ | ||
|
@@ -10,8 +10,10 @@ | |
owner: '<%= theme.comment.gitalk.owner %>', | ||
admin: ['<%= theme.comment.gitalk.admin %>'], | ||
id: md5(location.pathname), | ||
distractionFreeMode: true | ||
distractionFreeMode: true, | ||
language: '<%= theme.comment.gitalk.language %>', | ||
enableHotKey: '<%= theme.comment.gitalk.enableHotKey %>' | ||
}) | ||
gitalk.render('comments') | ||
</script> | ||
<% } %> | ||
<% } %> |
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