From 2c17fbcdf8ea36d9d10dba243db94de85575e8ed Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 2 Oct 2023 09:02:20 +0200 Subject: chore: Copy theme layouts --- .../single/components/comments/comments.html | 11 +++++++++++ .../partials/single/components/comments/disqus.html | 4 ++++ .../partials/single/components/comments/giscus.html | 21 +++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 layouts/partials/single/components/comments/comments.html create mode 100644 layouts/partials/single/components/comments/disqus.html create mode 100644 layouts/partials/single/components/comments/giscus.html (limited to 'layouts/partials/single/components/comments') diff --git a/layouts/partials/single/components/comments/comments.html b/layouts/partials/single/components/comments/comments.html new file mode 100644 index 0000000..2eae412 --- /dev/null +++ b/layouts/partials/single/components/comments/comments.html @@ -0,0 +1,11 @@ +{{ if .IsPage }} + + {{ if .Site.Params.giscus.enable }} + {{ partial "single/components/comments/giscus" . }} + {{ end }} + + + {{ if .Site.Params.disqusShortname }} + {{ partial "single/components/comments/disqus" . }} + {{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/single/components/comments/disqus.html b/layouts/partials/single/components/comments/disqus.html new file mode 100644 index 0000000..b794098 --- /dev/null +++ b/layouts/partials/single/components/comments/disqus.html @@ -0,0 +1,4 @@ +
+ {{/* https://gohugo.io/templates/internal/#disqus */}} + {{- template "_internal/disqus.html" . -}} +
\ No newline at end of file diff --git a/layouts/partials/single/components/comments/giscus.html b/layouts/partials/single/components/comments/giscus.html new file mode 100644 index 0000000..4daa23a --- /dev/null +++ b/layouts/partials/single/components/comments/giscus.html @@ -0,0 +1,21 @@ +
+ +
\ No newline at end of file -- cgit v1.3