diff options
| author | Francesco <tomaselli.fr@gmail.com> | 2024-08-13 19:29:25 +0200 | 
|---|---|---|
| committer | Francesco <tomaselli.fr@gmail.com> | 2024-08-13 19:29:25 +0200 | 
| commit | ef055ec50d07a7f764d1ee8aaabcebf209bc6b6e (patch) | |
| tree | f8a66caf619871d6cae7c0304297ff40971a23a6 | |
| parent | 16d9ca1344b5945020cc28c20468ac3d92f12922 (diff) | |
Uniform umami and comments inclusion
| -rw-r--r-- | layouts/_default/single.html | 2 | ||||
| -rw-r--r-- | layouts/partials/comments.html | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a8f5079..41ed835 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -63,7 +63,9 @@    <div class="single-content">      {{ .Content }} +    {{ if .Site.Params.giscus.enable }}      {{ partial "comments.html" . }} +    {{ end }}    </div>    {{/* Next prev controls */}} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index cbc7d6c..29b6f93 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -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 }}" @@ -14,5 +13,4 @@          data-loading="lazy"          crossorigin="anonymous"          async> -        </script> -{{ end }}
\ No newline at end of file +</script> | 
