From f21e410efd94fb7ea2b32daec220a59349c41516 Mon Sep 17 00:00:00 2001 From: DejavuMoe Date: Fri, 1 Apr 2022 17:59:38 +0800 Subject: [PATCH] feat: add [giscus](https://giscus.app) comment --- exampleSite/config.toml | 15 +++++++++++++++ layouts/partials/giscus.html | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 layouts/partials/giscus.html diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6ad23bf..5e18fbe 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -69,6 +69,21 @@ issueTerm = "pathname" server = "" placeholder = "" +# Giscus configuration +# Full doc's at https://giscus.app/ +[params.giscus] +enable = false # +data_repo="[ENTER REPO HERE]" +data_repo_id="[ENTER REPO ID HERE]" +data_category="[ENTER CATEGORY NAME HERE]" +data_category_id="[ENTER CATEGORY ID HERE]" +data_mapping="pathname" +data_reactions_enabled="1" +data_emit_metadata="0" +data_theme="light" +data-loading="lazy" +data_lang="en" +crossorigin="anonymous" # Params.social is an array containing your social network accounts, # Each has a lowercase name, a svg formatted icon and a url to the diff --git a/layouts/partials/giscus.html b/layouts/partials/giscus.html new file mode 100644 index 0000000..39bed50 --- /dev/null +++ b/layouts/partials/giscus.html @@ -0,0 +1,16 @@ +{{- if .Site.Params.giscus.enable -}} + + {{- end}} \ No newline at end of file