From b8fb7d7a8c8f3dfd7af148913993dd783684f5c8 Mon Sep 17 00:00:00 2001 From: nyms7 Date: Mon, 6 May 2024 15:19:49 +0800 Subject: feat: add giscus support --- layouts/_default/single.html | 1 + layouts/partials/comments.html | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 layouts/partials/comments.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c0f41c5..420a8ba 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -43,6 +43,7 @@
{{ .Content }} + {{ partial "comments.html" . }}
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 0000000..979b59e --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,18 @@ +{{ if .Site.Params.giscus.enable }} + +{{ end }} \ No newline at end of file -- cgit v1.2.3