From 510a1e8f8230d1765dcb62d3c151f489238653fb Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sun, 20 Mar 2022 01:43:18 +0530 Subject: Layout and Widget Changes * Adds Utterance Comment Widget - Enable Comments for Pages using enableComment(boolean) variable in pages * Adds About Section --- config.yml | 4 ++++ content/about.md | 7 +++++++ content/posts/fist-post.md | 1 + themes/terminal/layouts/_default/single.html | 10 ++++++++++ 4 files changed, 22 insertions(+) create mode 100644 content/about.md diff --git a/config.yml b/config.yml index 0259352..4bbdffe 100644 --- a/config.yml +++ b/config.yml @@ -25,6 +25,10 @@ menu: name: Archives url: /archives/ weight: 30 + - identifier: about + name : About + url : /about + weight : 3 languages: en: diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..d92a4cb --- /dev/null +++ b/content/about.md @@ -0,0 +1,7 @@ +--- +title: "About" +url: "/about/" +summary: about +enableComment: false +--- +Hey there diff --git a/content/posts/fist-post.md b/content/posts/fist-post.md index d2cb996..8169681 100644 --- a/content/posts/fist-post.md +++ b/content/posts/fist-post.md @@ -4,5 +4,6 @@ date: 2022-03-19T16:07:08+05:30 draft: false tags: ['craps'] categories: ['no-catagories'] +enableComment: true --- This is a test diff --git a/themes/terminal/layouts/_default/single.html b/themes/terminal/layouts/_default/single.html index 3d375ad..e0ac822 100644 --- a/themes/terminal/layouts/_default/single.html +++ b/themes/terminal/layouts/_default/single.html @@ -50,5 +50,15 @@ {{ end }} {{ partial "comments.html" . }} + {{ if .Params.enableComment}} + + {{end}} {{ end }} -- cgit v1.2.3