You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1000 B

3 years ago
<link rel="stylesheet" href="<%- theme.jsDelivr.url %><%- url_for('/libs/gitment/gitment-default.css') %>">
<link rel="stylesheet" href="<%- theme.jsDelivr.url %><%- url_for('/css/gitment.css') %>">
<div class="gitment-card card" data-aos="fade-up">
<div class="comment_headling" style="font-size: 20px; font-weight: 700; position: relative; padding-left: 20px; top: 15px; padding-bottom: 5px;">
<i class="fas fa-comments fa-fw" aria-hidden="true"></i>
<span>评论</span>
</div>
<div id="gitment-content" class="card-content"></div>
</div>
<script src="<%- theme.jsDelivr.url %><%- url_for('/libs/gitment/gitment.js') %>"></script>
<script>
var gitment = new Gitment({
id: '<%= page.date %>',
owner: '<%= theme.gitment.owner %>',
repo: '<%= theme.gitment.repo %>',
oauth: {
client_id: '<%= theme.gitment.oauth.clientId %>',
client_secret: '<%= theme.gitment.oauth.clientSecret %>'
}
});
gitment.render('gitment-content');
</script>