forked from litten/hexo-theme-yilia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
j0ck1e
committed
Sep 13, 2018
1 parent
5cd9ba5
commit 2a9fce1
Showing
6 changed files
with
57 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css"> | ||
<div id="gitalk-container"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script> | ||
<script type="text/javascript"> | ||
var gitalk = new Gitalk({ | ||
clientID: '<%= theme.gitalk.clientID %>', | ||
clientSecret: '<%= theme.gitalk.clientSecret %>', | ||
id: window.location.pathname, | ||
repo: '<%= theme.gitalk.repo %>', | ||
owner: '<%= theme.gitalk.owner %>', | ||
admin: '<%= theme.gitalk.admin %>', | ||
distractionFreeMode: '<%= theme.gitalk.distractionFreeMode %>' | ||
}) | ||
gitalk.render('gitalk-container') | ||
</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
Large diffs are not rendered by default.
Oops, something went wrong.