1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| plugins: - //imsun.github.io/gitment/style/default.css - //imsun.github.io/gitment/dist/gitment.browser.js - position: comments template: | <div id="gitment"></div> <script> if (!window.__gitment) window.__gitment = new Gitment({ owner: 'Your GitHub ID', repo: 'The repo to store comments', oauth: { client_id: 'Your client ID', client_secret: 'Your client secret', }, }); Object.assign(__gitment, { id: decodeURIComponent(location.pathname), title: document.title, link: location.href, }); __gitment.update(); __gitment.render('gitment'); </script>
|