Add graph comment
This commit is contained in:
parent
31d48aafa2
commit
976fff99cb
3 changed files with 31 additions and 0 deletions
|
@ -64,6 +64,8 @@ disqusShortname = 'YOUR_DISQUS_SHORTNAME' # add disqus comments
|
||||||
name = 'YOUR_NAME'
|
name = 'YOUR_NAME'
|
||||||
bio = 'YOUR_BIO'
|
bio = 'YOUR_BIO'
|
||||||
|
|
||||||
|
graphcommentId = "graph id" # add graph comments id (disqus alternative)
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
disableHLJS = true # disable requesting highlight.js
|
disableHLJS = true # disable requesting highlight.js
|
||||||
monoDarkIcon = true # show monochrome dark mode icon
|
monoDarkIcon = true # show monochrome dark mode icon
|
||||||
|
|
|
@ -25,6 +25,7 @@ title = "Paper"
|
||||||
name = 'Lee'
|
name = 'Lee'
|
||||||
bio = 'Discover fresh context'
|
bio = 'Discover fresh context'
|
||||||
|
|
||||||
|
graphcommentId = "your graph id"
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
|
|
||||||
# needed to render raw HTML (e.g. <sub>, <sup>, <kbd>, <mark>)
|
# needed to render raw HTML (e.g. <sub>, <sup>, <kbd>, <mark>)
|
||||||
|
|
|
@ -66,6 +66,34 @@
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- GraphComments -->
|
||||||
|
{{ if and site.Params.graphcommentId (not (eq .Params.comments false)) }}
|
||||||
|
<div class="mt-24" id="graphcomment"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var __semio__params = {
|
||||||
|
graphcommentId: "{{ .Site.Params.graphcommentId }}",
|
||||||
|
|
||||||
|
behaviour: {
|
||||||
|
// uid: "...",
|
||||||
|
},
|
||||||
|
|
||||||
|
// configure your variables here
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function __semio__onload() {
|
||||||
|
__semio__gc_graphlogin(__semio__params)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
|
||||||
|
gc.onload = __semio__onload; gc.defer = true; gc.src = 'https://integration.graphcomment.com/gc_graphlogin.js?' + Date.now();
|
||||||
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue