diff options
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_partial/post/valine.ejs')
m--------- | themes/hexo-theme-freemind.bithack | 0 | ||||
-rw-r--r-- | themes/hexo-theme-freemind.bithack/layout/_partial/post/valine.ejs | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/themes/hexo-theme-freemind.bithack b/themes/hexo-theme-freemind.bithack deleted file mode 160000 -Subproject db335ebdc14507c7687084da084a56eb3d003f1 diff --git a/themes/hexo-theme-freemind.bithack/layout/_partial/post/valine.ejs b/themes/hexo-theme-freemind.bithack/layout/_partial/post/valine.ejs new file mode 100644 index 0000000..4d7b96d --- /dev/null +++ b/themes/hexo-theme-freemind.bithack/layout/_partial/post/valine.ejs @@ -0,0 +1,17 @@ +<div id="vcomment" class="comment"></div>
+<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
+<script src="https://cdnjs.loli.net/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
+<script>
+var valineConfig = <%- JSON.stringify(theme.valine)%>
+valineConfig.el='#vcomment';
+new Valine(valineConfig);
+ // new Valine({
+ // el: '#vcomment',
+ // appId: "<%= theme.valine.appid %>",
+ // appKey: "<%= theme.valine.appkey %>",
+ // placeholder: "<%= theme.valine.placeholder %>",
+ // avatar:"<%= theme.valine.avatar %>",
+ // visitor: "<%= theme.valine.visitor %>",
+ // requiredFields: "<%= theme.valine.requiredFields %>".split(','),
+ // });
+</script>
|