forked from monkeyWzr/hugo-theme-cactus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added utteranc.es and Cactus Comments support
- Loading branch information
1 parent
8073c98
commit 02e057b
Showing
6 changed files
with
60 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div id="cactus-comments-thread"> | ||
<script> | ||
initComments({ | ||
node: document.getElementById("cactus-comments-thread"), | ||
defaultHomeserverUrl: '{{ default "https://matrix.cactus.chat:8448" .Site.Params.Comments.Cactuscomments.ServerUrl }}', | ||
serverName: '{{ default "cactus.chat" .Site.Params.Comments.Cactuscomments.ServerName }}', | ||
siteName: "{{ .Site.Params.Comments.Cactuscomments.SiteName }}", | ||
commentSectionId: "{{ .RelPermalink }}" | ||
}) | ||
</script> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div id="disqus_thread"> | ||
<script type="text/javascript"> | ||
(function() { | ||
// Don't ever inject Disqus on localhost--it creates unwanted | ||
// discussions from 'localhost:1313' on your Disqus account... | ||
// if (window.location.hostname == "localhost") | ||
// return; | ||
|
||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
var disqus_shortname = '{{ if .Site.DisqusShortname }}{{ .Site.DisqusShortname }}{{ else }}{{ .Site.Title }}{{ end }}'; | ||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
<a href="https://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div id="disquss_thread"> | ||
<script src="https://utteranc.es/client.js" | ||
repo="{{ .Site.Params.Comments.Utterances.Repo }}" | ||
issue-term="pathname" | ||
label="{{ .Site.Params.Comments.Utterances.Label }}" | ||
theme="{{ .Site.Params.Comments.Utterances.Theme }}" | ||
crossorigin="anonymous" | ||
async> | ||
</script> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters