diff --git a/hugo.toml b/hugo.toml index 5680087..98af54a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -73,4 +73,18 @@ url = "about/" [[menu.main]] name = "Contact Me" weight = 4 -url = "contact/" \ No newline at end of file +url = "contact/" + +# Comments +[params.giscus] +repo = "Nathaniel-Roberts/Nathaniel-Roberts.github.io" +repoID = "R_kgDOI1dzaQ" +category = "Announcements" +categoryID = "DIC_kwDOI1dzac4Cgh9i" +mapping = "pathname" +reactionsEnabled = "1" +emitMetadata = "0" +inputPosition = "top" +theme = "noborder_dark" +lang = "en" +loading = "lazy" \ No newline at end of file diff --git a/layouts/posts/giscus.html b/layouts/posts/giscus.html new file mode 100644 index 0000000..df8572e --- /dev/null +++ b/layouts/posts/giscus.html @@ -0,0 +1,19 @@ +{{- if isset .Site.Params "giscus" -}} + {{- if and (isset .Site.Params.giscus "repo") (not (eq .Site.Params.giscus.repo "" )) (eq (.Params.disable_comments | default false) false) -}} + + {{- end -}} +{{- end -}} \ No newline at end of file diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..575dafb --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,3 @@ + \ No newline at end of file