update
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
alleks
2023-03-19 18:53:58 +03:00
parent d67e7b66e4
commit c2f6f674b0
6 changed files with 3 additions and 77 deletions

View File

@@ -1,21 +0,0 @@
<% if (theme.gitalk.enable && post.comments) { %>
<div class="gitalk" id="gitalk-container"></div>
<%- css('https://cdn.staticfile.org/gitalk/1.7.2/gitalk.min.css') %>
<%- js('https://cdn.staticfile.org/gitalk/1.7.2/gitalk.min.js') %>
<%- js('https://cdn.staticfile.org/blueimp-md5/2.19.0/js/md5.min.js') %>
<script type="text/javascript">
var gitalk = new Gitalk({
clientID: '<%- theme.gitalk.clientID %>',
clientSecret: '<%- theme.gitalk.clientSecret %>',
repo: '<%- theme.gitalk.repo %>',
owner: '<%- theme.gitalk.owner %>',
admin: ['<%- theme.gitalk.admin %>'],
// id: location.pathname, // Ensure uniqueness and length less than 50
id: md5(location.pathname),
distractionFreeMode: false, // Facebook-like distraction free mode
pagerDirection: 'last'
})
gitalk.render('gitalk-container')
</script>
<% } %>