summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2022-03-20 01:43:18 +0530
committerIndrajith K L2022-03-20 01:43:18 +0530
commit510a1e8f8230d1765dcb62d3c151f489238653fb (patch)
tree3447906b42ac000ed7d9b2086dc7859bea581030
parent941642aee876a97dbb79666d8fabaa2b1feb9ff5 (diff)
downloadexperimentsofindrajith-510a1e8f8230d1765dcb62d3c151f489238653fb.tar.gz
experimentsofindrajith-510a1e8f8230d1765dcb62d3c151f489238653fb.tar.bz2
experimentsofindrajith-510a1e8f8230d1765dcb62d3c151f489238653fb.zip
Layout and Widget Changes
* Adds Utterance Comment Widget - Enable Comments for Pages using enableComment(boolean) variable in pages * Adds About Section
-rw-r--r--config.yml4
-rw-r--r--content/about.md7
-rw-r--r--content/posts/fist-post.md1
-rw-r--r--themes/terminal/layouts/_default/single.html10
4 files changed, 22 insertions, 0 deletions
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}}
+ <script src="https://utteranc.es/client.js"
+ repo="cooljith91112/experimentsofindrajith"
+ issue-term="pathname"
+ label="blog_comments"
+ theme="github-dark"
+ crossorigin="anonymous"
+ async>
+ </script>
+ {{end}}
</div>
{{ end }}