From 2be9c55b5b194d7ae760b2b9e19fcd2eaf0625f4 Mon Sep 17 00:00:00 2001 From: zhixuan Date: Sat, 14 Aug 2021 14:16:52 +0900 Subject: [PATCH] giscus --- exampleSite/config.yaml | 11 +++++- .../partials/comments/provider/giscus.html | 35 +++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/comments/provider/giscus.html diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index ac67c62..a1115b1 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -93,6 +93,15 @@ params: path: lang: + giscus: + repo: + repoID: + category: + categoryID: + mapping: + lightTheme: + darkTheme: + widgets: enabled: - search @@ -159,7 +168,7 @@ related: markup: tableOfContents: - endLevel: 4 + endLevel: 0 ordered: true startLevel: 2 highlight: diff --git a/layouts/partials/comments/provider/giscus.html b/layouts/partials/comments/provider/giscus.html new file mode 100644 index 0000000..fce175f --- /dev/null +++ b/layouts/partials/comments/provider/giscus.html @@ -0,0 +1,35 @@ +{{- with .Site.Params.comments.giscus -}} + + +{{- end -}} \ No newline at end of file