hexo-theme-amane/layout/comment/changyan.ejs

14 lines
588 B
Plaintext
Raw Normal View History

2018-10-16 05:28:42 +00:00
<% if (!has_config('comment.appid') || !has_config('comment.conf')) { %>
<div class="notification is-danger">
You forgot to set the <code>appid</code> or <code>conf</code> for Changyan. Please set it in <code>_config.yml</code>.
</div>
2017-04-12 15:14:25 +00:00
<% } else { %>
2018-10-16 05:28:42 +00:00
<div id="SOHUCS" sid="<%= post.path %>"></div>
<script charset="utf-8" type="text/javascript" src="https://changyan.sohu.com/upload/changyan.js" ></script>
<script type="text/javascript">
window.changyan.api.config({
appid: '<%= get_config('comment.appid') %>',
conf: '<%= get_config('comment.conf') %>'
});
</script>
2017-04-12 15:14:25 +00:00
<% } %>