diff options
author | Indrajith K L | 2022-03-20 01:43:18 +0530 |
---|---|---|
committer | Indrajith K L | 2022-03-20 01:43:18 +0530 |
commit | 510a1e8f8230d1765dcb62d3c151f489238653fb (patch) | |
tree | 3447906b42ac000ed7d9b2086dc7859bea581030 | |
parent | 941642aee876a97dbb79666d8fabaa2b1feb9ff5 (diff) | |
download | experimentsofindrajith-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.yml | 4 | ||||
-rw-r--r-- | content/about.md | 7 | ||||
-rw-r--r-- | content/posts/fist-post.md | 1 | ||||
-rw-r--r-- | themes/terminal/layouts/_default/single.html | 10 |
4 files changed, 22 insertions, 0 deletions
@@ -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 }} |