From 767150bba4df423685f75b3dd018010088102bf6 Mon Sep 17 00:00:00 2001 From: Ales Lerch <13370338+axeII@users.noreply.github.com> Date: Tue, 13 Jun 2023 01:40:59 +0200 Subject: [PATCH] feat: adds module for comments --- config/_default/module.toml | 3 +++ go.mod | 5 +++++ go.sum | 2 ++ hugo.toml | 28 ++++++++++++++++++++++++++++ layouts/partials/comments.html | 1 + 5 files changed, 39 insertions(+) create mode 100644 config/_default/module.toml create mode 100644 go.mod create mode 100644 go.sum create mode 100644 hugo.toml create mode 100644 layouts/partials/comments.html diff --git a/config/_default/module.toml b/config/_default/module.toml new file mode 100644 index 0000000..2d501c9 --- /dev/null +++ b/config/_default/module.toml @@ -0,0 +1,3 @@ +[[imports]] + +path = "github.com/hugomods/utterances" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..164843a --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/axeII/my-blog + +go 1.20 + +require github.com/hugomods/utterances v0.1.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..519c0c3 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/hugomods/utterances v0.1.0 h1:0mEKjG4eke/jdTPIxL2qfdm9W9TFpqgWh1x6d1n7Xg8= +github.com/hugomods/utterances v0.1.0/go.mod h1:p6YjYb9iUozzKTP6V6Rhw3DCaZeXv+qonNVl+UZE0A8= diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..0392a9a --- /dev/null +++ b/hugo.toml @@ -0,0 +1,28 @@ +[params.utterances] +# Client script endpoint. +# endpoint = "https://utteranc.es/" + +# # The GitHub repository, required. +# repo = "axeII/happy-blogging" + +# # The mapping between blog posts and GitHub issues. Available options: +# # pathname: Utterances will search for an issue whose title contains the blog post's pathname URL component. +# # url: Utterances will search for an issue whose title contains the blog post's URL. +# # title: Utterances will search for an issue whose title contains the blog post's title. +# # og:title: Utterances will search for an issue whose title contains the page's Open Graph title meta. +# mapping = "pathname" + +# # The label that will be assigned to issues created by Utterances. +# label = "comments" + +# # Theme. Available options: +# # github-light: GitHub Light +# # github-dark: GitHub Dark +# # preferred-color-scheme: Preferred Color Scheme +# # github-dark-orange: GitHub Dark Orange +# # icy-dark: Icy Dark +# # dark-blue: Dark Blue +# # photon-dark: Photon Dark +# # boxy-light: Boxy Light +# # gruvbox-dark: Gruvbox Dark +# theme = "preferred-color-scheme" diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 0000000..98bb318 --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1 @@ +{{ partial "utterances/script" . }}