forked from kitian616/jekyll-TeXt-theme
-
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
Showing
11 changed files
with
73 additions
and
30 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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
{%- include snippets/get-sources.html -%} | ||
{%- assign _sources = __return -%} | ||
|
||
{%- assign _VALINE_APP_ID = site.comments.valine.app_id -%} | ||
{%- assign _VALINE_APP_KEY = site.comments.valine.app_key -%} | ||
{%- assign _VALINE_PLACEHOLDER = site.comments.valine.placeholder -%} | ||
|
||
|
||
{%- if page.key and | ||
_VALINE_APP_ID and | ||
_VALINE_APP_KEY -%} | ||
|
||
<div id="vcomments"></div> | ||
<script> | ||
window.Lazyload.js(['{{ _sources.leancloud_js_sdk}}', '{{ _sources.valine }}'], function() { | ||
var _config = { | ||
el: '#vcomments', | ||
appId: '{{ _VALINE_APP_ID }}', | ||
appKey: '{{ _VALINE_APP_KEY }}', | ||
verify: true, | ||
}; | ||
{%- if _VALINE_PLACEHOLDER -%} | ||
_config.placeholder = '{{ _VALINE_PLACEHOLDER }}'; | ||
{%- endif -%} | ||
{%- assign _page_lang_slice = page.lang | slice: 0, 2 -%} | ||
{%- if _page_lang_slice != 'zh' -%} | ||
_config.lang = 'en'; | ||
{%- endif -%} | ||
new Valine(_config); | ||
}); | ||
</script> | ||
|
||
{%- endif -%} |
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
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