diff --git a/README.md b/README.md index 58128fe..0bf4079 100755 --- a/README.md +++ b/README.md @@ -64,6 +64,8 @@ disqusShortname = 'YOUR_DISQUS_SHORTNAME' # add disqus comments name = 'YOUR_NAME' bio = 'YOUR_BIO' + graphcommentId = "graph id" # add graph comments id (disqus alternative) + # misc disableHLJS = true # disable requesting highlight.js monoDarkIcon = true # show monochrome dark mode icon diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 77e80bd..7256c70 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -25,6 +25,7 @@ title = "Paper" name = 'Lee' bio = 'Discover fresh context' + graphcommentId = "your graph id" # ------------------------------ # needed to render raw HTML (e.g. , , , ) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9095e91..d06d87c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -66,6 +66,34 @@ document.head.appendChild(script); {{ end }} + + + {{ if and site.Params.graphcommentId (not (eq .Params.comments false)) }} +
+ + {{ end }} {{ end }}