add graphcomment
This commit is contained in:
parent
87949e616c
commit
18196328d7
@ -21,6 +21,9 @@ readNextPosts = 2
|
|||||||
copyCodeButton = true
|
copyCodeButton = true
|
||||||
rssAsSocialIcon = true
|
rssAsSocialIcon = true
|
||||||
|
|
||||||
|
# Graphcomment support
|
||||||
|
graphcommentId = ""
|
||||||
|
|
||||||
# utteranc.es support
|
# utteranc.es support
|
||||||
utterancesRepo = "" # mandatory
|
utterancesRepo = "" # mandatory
|
||||||
utterancesTheme = "" # optional
|
utterancesTheme = "" # optional
|
||||||
@ -60,4 +63,4 @@ category = "categories"
|
|||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
@ -22,6 +22,9 @@ readNextPosts = 2
|
|||||||
copyCodeButton = true
|
copyCodeButton = true
|
||||||
rssAsSocialIcon = true
|
rssAsSocialIcon = true
|
||||||
|
|
||||||
|
# Graphcomment support
|
||||||
|
graphcommentId = ""
|
||||||
|
|
||||||
# utteranc.es support
|
# utteranc.es support
|
||||||
utterancesRepo = "" # mandatory
|
utterancesRepo = "" # mandatory
|
||||||
utterancesTheme = "" # optional
|
utterancesTheme = "" # optional
|
||||||
@ -83,4 +86,4 @@ category = "categories"
|
|||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
32
layouts/partials/graphcomment.html
Normal file
32
layouts/partials/graphcomment.html
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<div id="graphcomment"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
/* - - - CONFIGURATION VARIABLES - - - */
|
||||||
|
|
||||||
|
var __semio__params = {
|
||||||
|
graphcommentId: "{{ .Site.Params.graphcommentId }}", // obviously you need to create your own ID on graphcomment.com
|
||||||
|
|
||||||
|
behaviour: {
|
||||||
|
// HIGHLY RECOMMENDED
|
||||||
|
// uid: "...", // uniq identifer for the comments thread on your page (ex: your page id)
|
||||||
|
},
|
||||||
|
|
||||||
|
// configure your variables here
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* - - - DON'T EDIT BELOW THIS LINE - - - */
|
||||||
|
|
||||||
|
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>
|
Loading…
Reference in New Issue
Block a user