From 9b2fc883440792f3335b628ae2b48dddd58896f4 Mon Sep 17 00:00:00 2001 From: Mirus Date: Fri, 2 Aug 2024 11:01:07 +0300 Subject: [PATCH] demo: add utterances comments system --- demoSite/content/about.md | 1 + demoSite/content/posts/hello.md | 1 + demoSite/content/showcase.md | 11 ++++++----- demoSite/{config.toml => hugo.toml} | 4 ++-- demoSite/layouts/partials/comments.html | 12 ++++++++++++ 5 files changed, 22 insertions(+), 7 deletions(-) rename demoSite/{config.toml => hugo.toml} (100%) create mode 100644 demoSite/layouts/partials/comments.html diff --git a/demoSite/content/about.md b/demoSite/content/about.md index 0d38d58..94a252b 100644 --- a/demoSite/content/about.md +++ b/demoSite/content/about.md @@ -2,6 +2,7 @@ title = "About" date = "2024-07-30" author = "Mirus" +hideComments=true +++ diff --git a/demoSite/content/posts/hello.md b/demoSite/content/posts/hello.md index b2d31f6..a2363d8 100644 --- a/demoSite/content/posts/hello.md +++ b/demoSite/content/posts/hello.md @@ -4,6 +4,7 @@ date = "2024-07-30" author = "Mirus" cover = "img/hello.jpg" description = "The popular theme for Hugo Terminal is reborn in re-Terminal fork. Let's make the Radek's work continue to live" +hideComments=true +++ diff --git a/demoSite/content/showcase.md b/demoSite/content/showcase.md index 08a22f3..a88c7e9 100644 --- a/demoSite/content/showcase.md +++ b/demoSite/content/showcase.md @@ -1,8 +1,9 @@ ---- -title: "Showcase" -date: "2018-07-18" -author: "Hello Robot" ---- ++++ +title= "Showcase" +date= "2018-07-18" +author= "Hello Robot" +hideComments= true ++++ # Features in updates - [native CSS variables showcase](/posts/css-vars/) diff --git a/demoSite/config.toml b/demoSite/hugo.toml similarity index 100% rename from demoSite/config.toml rename to demoSite/hugo.toml index 96efe12..07d32b2 100644 --- a/demoSite/config.toml +++ b/demoSite/hugo.toml @@ -51,10 +51,10 @@ target = 'static' source = 'static' target = 'static' [[module.mounts]] -source = 'demoSite/layouts' +source = 'layouts' target = 'layouts' [[module.mounts]] -source = 'layouts' +source = 'demoSite/layouts' target = 'layouts' [[module.mounts]] source = 'archetypes' diff --git a/demoSite/layouts/partials/comments.html b/demoSite/layouts/partials/comments.html new file mode 100644 index 0000000..bb14433 --- /dev/null +++ b/demoSite/layouts/partials/comments.html @@ -0,0 +1,12 @@ +
+ +
+ \ No newline at end of file