mirror of
https://github.com/Colin-XKL/Colinx-Blog.git
synced 2026-01-11 02:01:29 +08:00
comments only show under articles
This commit is contained in:
21
layouts/partials/comments.html
Normal file
21
layouts/partials/comments.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<div id="gitalk-container" style="
|
||||
margin: 20px auto;
|
||||
max-width: 800px;
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
|
||||
<script>
|
||||
const gitalk = new Gitalk({
|
||||
clientID: '94eae56b89dcc480bf4d',
|
||||
clientSecret: '1e4218c0293a998a9483ab09ba9ace46cabc76b3',
|
||||
repo: 'Colinx-Blog', // The repository of store comments,
|
||||
owner: 'Colin-XKL',
|
||||
admin: ['Colin-XKL'],
|
||||
id: decodeURI(location.pathname), // Ensure uniqueness and length less than 50
|
||||
distractionFreeMode: false // Facebook-like distraction free mode
|
||||
});
|
||||
gitalk.render('gitalk-container');
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
|
||||
@@ -1,10 +1,4 @@
|
||||
<div id="gitalk-container" style="
|
||||
margin: 20px auto;
|
||||
max-width: 800px;
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
"></div>
|
||||
|
||||
<footer class="footer">
|
||||
<span id="busuanzi_container_site_pv" style='display:none'>
|
||||
嗨,第<span id="busuanzi_value_site_pv"></span>位小伙伴 : )
|
||||
@@ -27,7 +21,6 @@
|
||||
|
||||
<script src="{{ "assets/main.js" | absURL }}"></script>
|
||||
<script async src="{{ "assets/prism.js" | absURL }}"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
|
||||
|
||||
<script>
|
||||
meta = document.querySelectorAll('.post:not(.on-list) .post-meta')[0];
|
||||
@@ -35,19 +28,7 @@
|
||||
if (meta) meta.innerHTML = meta.innerHTML + visitors
|
||||
</script>
|
||||
|
||||
<script>
|
||||
const gitalk = new Gitalk({
|
||||
clientID: '94eae56b89dcc480bf4d',
|
||||
clientSecret: '1e4218c0293a998a9483ab09ba9ace46cabc76b3',
|
||||
repo: 'Colinx-Blog', // The repository of store comments,
|
||||
owner: 'Colin-XKL',
|
||||
admin: ['Colin-XKL'],
|
||||
id: decodeURI(location.pathname), // Ensure uniqueness and length less than 50
|
||||
distractionFreeMode: false // Facebook-like distraction free mode
|
||||
});
|
||||
gitalk.render('gitalk-container');
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
|
||||
|
||||
<!-- Sentry -->
|
||||
<script src="https://browser.sentry-cdn.com/6.15.0/bundle.tracing.min.js"
|
||||
integrity="sha384-1k7XKRQgqjUbNyG2sI+qsY8HTHMOeLdycMx6hoGuNSANZ3WrMa3LXkr+M4t+SIpF"
|
||||
|
||||
Reference in New Issue
Block a user