From aa2825a2a7143aa08cd07f36c9896f9ec3cbd63b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Lemaitre?= Date: Sat, 18 Nov 2023 21:16:33 +0100 Subject: [PATCH] Integrate utteranc.es comment system --- exampleSite/config.toml | 36 ++++++++++++++++++++++++++++++++++++ layouts/posts/single.html | 11 +++++++++++ 2 files changed, 47 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a006d6f..faa21d3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -156,6 +156,42 @@ disableHugoGeneratorInject = false # [params.commento] # url = "" + # Utteranc.es is a lightweight comments widget built on GitHub issues. + # See https://utteranc.es/ for documentation + # Uncomment this to enable Utteranc.es. + # + # [params.utterances] + # Your GitHub repository + # + # repository = "" + + # label used for GitHub issues + # + # label = "" + + # Blog Post <-> Issue mapping. This parameter is optional. Possible values are: + # - pathname + # - url + # - title + # - og:title + # - issue number + # - specific term + # + # issueTerm = "" + + # Theme used: possible values are: + # - github-light + # - github-dark + # - preferred-color-scheme + # - github-dark-orange + # - icy-dark + # - dark-blue + # - photon-dark + # - boxy-light + # - gruvbox-dark + # + # theme = "" + # Uncomment this if you want a portrait on your start page # # [params.portrait] diff --git a/layouts/posts/single.html b/layouts/posts/single.html index dfb95a3..cc65058 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -135,5 +135,16 @@
{{ end }} + {{ if .Site.Params.Utterances.Repository }} + + {{ end }} + {{ end }}