Skip to content

Commit

Permalink
Add Giscus support
Browse files Browse the repository at this point in the history
  • Loading branch information
ojacques committed May 19, 2021
1 parent ef6d4ad commit 24fff5b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions themes/castanet/layouts/episode/single.html
Expand Up @@ -340,6 +340,14 @@ <h2><a href = "{{(printf "host/%s/" .File.BaseFileName) | absURL }}">{{ .Title }
</div>
<!-- disqus ends -->
{{ end }}
<!-- giscus begins -->
<hr />
<div class="row">
<div class="col-md-12">
{{ partial "giscus.html" }}
</div>
</div>
<!-- giscus ends -->

<div class="row">
<!-- pager begin -->
Expand Down
11 changes: 11 additions & 0 deletions themes/castanet/layouts/partials/giscus.html
@@ -0,0 +1,11 @@
<script src="https://giscus.vercel.app/client.js"
data-repo="ojacques/TDBwebsite"
data-repo-id="MDEwOlJlcG9zaXRvcnkzNjgyNjkxMTg="
data-category-id="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyOTQyMjA2"
data-mapping="pathname"
data-theme="light"
crossorigin="anonymous"
async>
</script>

<noscript>Please enable JavaScript to view the <a href="https://giscus.vercel.app/">comments powered by Giscus.</a></noscript>

0 comments on commit 24fff5b

Please sign in to comment.