Skip to content

Commit

Permalink
Uniform umami and comments inclusion
Browse files Browse the repository at this point in the history
Former-commit-id: cb8720c
Former-commit-id: bb045af05ed773c21f09a97980433740d003ec09
  • Loading branch information
tomfran committed Aug 13, 2024
1 parent b4a3410 commit 41d5612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ <h1 class="single-title">{{ .Title }}</h1>

<div class="single-content">
{{ .Content }}
{{ if .Site.Params.giscus.enable }}
{{ partial "comments.html" . }}
{{ end }}
</div>

{{/* Next prev controls */}}
Expand Down
4 changes: 1 addition & 3 deletions layouts/partials/comments.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ if .Site.Params.giscus.enable }}
<script src="https://giscus.app/client.js"
data-repo="{{ .Site.Params.giscus.repo }}"
data-repo-id="{{ .Site.Params.giscus.repoid }}"
Expand All @@ -14,5 +13,4 @@
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
{{ end }}
</script>

0 comments on commit 41d5612

Please sign in to comment.