From 304907538b22b7d2eabd336a42d00e6c654e8be9 Mon Sep 17 00:00:00 2001
From: Siddhartha
Date: Fri, 5 May 2023 00:46:33 +0530
Subject: [PATCH] display tags in post list
---
layouts/partials/post_meta.html | 25 +++++++
layouts/partials/tags.html | 9 +++
public/about/index.html | 2 +-
public/categories/book-notes/index.html | 20 ++---
.../categories/book-notes/page/2/index.html | 18 ++---
public/categories/cinema/index.html | 16 ++--
public/categories/drawings/index.html | 12 +--
public/categories/photography/index.html | 2 +-
public/categories/poetry/index.html | 4 +-
public/index.html | 20 ++---
public/notes/index.html | 74 +++++++++----------
public/page/2/index.html | 20 ++---
public/page/3/index.html | 20 ++---
public/page/4/index.html | 10 +--
public/photography/index.html | 2 +-
public/posts/cinema/3-iron/index.html | 2 +-
public/posts/cinema/after-life/index.html | 2 +-
public/posts/cinema/anatolia/index.html | 2 +-
public/posts/cinema/darjeeling/index.html | 2 +-
public/posts/cinema/oslo-august/index.html | 2 +-
public/posts/cinema/riding-solo/index.html | 2 +-
public/posts/cinema/waking-life/index.html | 2 +-
public/posts/cinema/winter-sleep/index.html | 2 +-
.../deference-vs-indifference/index.html | 2 +-
.../drawings/a-beautiful-woman/index.html | 2 +-
public/posts/drawings/chaplin/index.html | 2 +-
public/posts/drawings/einstein/index.html | 2 +-
public/posts/drawings/gandhi/index.html | 2 +-
.../posts/drawings/martin-freeman/index.html | 2 +-
public/posts/drawings/teresa/index.html | 2 +-
public/posts/index.html | 20 ++---
public/posts/page/2/index.html | 20 ++---
public/posts/page/3/index.html | 20 ++---
public/posts/page/4/index.html | 10 +--
.../reading/annihilation-of-caste/index.html | 2 +-
public/posts/reading/azadi/index.html | 2 +-
public/posts/reading/bad-blood/index.html | 2 +-
public/posts/reading/behave-review/index.html | 2 +-
.../reading/four-thousand-weeks/index.html | 2 +-
.../glimpses-of-world-history/index.html | 2 +-
public/posts/reading/great-music/index.html | 2 +-
.../reading/life-between-buildings/index.html | 2 +-
public/posts/reading/parenting/index.html | 2 +-
.../posts/reading/range-a-review/index.html | 2 +-
.../reading/reasons-to-stay-alive/index.html | 2 +-
.../posts/reading/running-murakami/index.html | 2 +-
public/posts/reading/shame-rushdie/index.html | 2 +-
.../posts/reading/so-good-newport/index.html | 2 +-
public/posts/reading/stoner/index.html | 2 +-
.../reading/the-course-of-love/index.html | 2 +-
.../index.html | 2 +-
.../posts/reading/the-way-we-eat/index.html | 2 +-
public/posts/reading/waking-up/index.html | 2 +-
public/posts/scared-in-lockdown/index.html | 2 +-
public/tags/animal-cruelty/index.html | 2 +-
public/tags/animation/index.html | 2 +-
public/tags/architecture/index.html | 2 +-
public/tags/asia/index.html | 4 +-
public/tags/audiobook/index.html | 6 +-
public/tags/career-advice/index.html | 4 +-
public/tags/classical-music/index.html | 2 +-
public/tags/colorful-quirks/index.html | 2 +-
public/tags/debating-ethics/index.html | 2 +-
public/tags/depression/index.html | 2 +-
public/tags/existentialism/index.html | 2 +-
public/tags/fast-food-books/index.html | 2 +-
public/tags/favourites/index.html | 18 ++---
public/tags/fiction/index.html | 6 +-
public/tags/foreign-cinema/index.html | 10 +--
public/tags/health/index.html | 2 +-
public/tags/history/index.html | 4 +-
public/tags/india/index.html | 2 +-
public/tags/indian-authors/index.html | 8 +-
public/tags/journalism/index.html | 2 +-
public/tags/letters/index.html | 2 +-
public/tags/meditation/index.html | 2 +-
public/tags/minimalism/index.html | 2 +-
public/tags/motorcycling/index.html | 2 +-
public/tags/non-fiction/index.html | 20 ++---
public/tags/non-fiction/page/2/index.html | 8 +-
public/tags/norwegian/index.html | 2 +-
public/tags/parenting/index.html | 2 +-
public/tags/philosophy/index.html | 4 +-
public/tags/poetry/index.html | 4 +-
public/tags/productivity/index.html | 4 +-
public/tags/relationship/index.html | 2 +-
public/tags/religion/index.html | 4 +-
public/tags/review/index.html | 2 +-
public/tags/sketching/index.html | 12 +--
public/tags/society/index.html | 2 +-
public/tags/turkey/index.html | 4 +-
.../tags/understanding-ourselves/index.html | 4 +-
public/tags/writing/index.html | 4 +-
93 files changed, 299 insertions(+), 265 deletions(-)
create mode 100644 layouts/partials/post_meta.html
create mode 100644 layouts/partials/tags.html
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
new file mode 100644
index 0000000..9ac142c
--- /dev/null
+++ b/layouts/partials/post_meta.html
@@ -0,0 +1,25 @@
+{{- $scratch := newScratch }}
+
+{{- if not .Date.IsZero -}}
+{{- $scratch.Add "meta" (slice (printf "🗓 %s" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}
+{{- end }}
+
+{{- if (.Param "ShowReadingTime") -}}
+{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }}
+{{- end }}
+
+{{- if (.Param "ShowWordCount") -}}
+{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }}
+{{- end }}
+
+{{- $author := (partial "author.html" .) }}
+{{- $tags := (partial "tags.html" .) }}
+{{- if $tags }}
+ {{- $scratch.Add "meta" (slice $tags) -}}
+{{- else}}
+ {{- $scratch.Add "meta" (slice $author) -}}
+{{- end}}
+
+{{- with ($scratch.Get "meta") }}
+{{- delimit . " " -}}
+{{- end -}}
diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html
new file mode 100644
index 0000000..0d2601b
--- /dev/null
+++ b/layouts/partials/tags.html
@@ -0,0 +1,9 @@
+{{- $tags := .Params.tags -}}
+{{- if $tags -}}
+ {{- $lastIndex := sub (len $tags) 1 -}}
+ {{- range $index, $tag := $tags -}}
+ {{- if eq $index 0 }}🔖 {{ end -}}
+ {{ $tag }}
+ {{- if ne $index $lastIndex }} · {{ end -}}
+ {{- end -}}
+{{- end -}}
diff --git a/public/about/index.html b/public/about/index.html
index dc9a353..945dd5a 100644
--- a/public/about/index.html
+++ b/public/about/index.html
@@ -200,7 +200,7 @@ So to solve this little problem of mine, I came up with this unoriginal idea."/>
About Me
- January 9, 2019 · 3 min · Siddhartha Golu
+
🗓 January 9, 2019 3 min Siddhartha Golu
diff --git a/public/categories/book-notes/index.html b/public/categories/book-notes/index.html
index f7ce103..273cfb6 100644
--- a/public/categories/book-notes/index.html
+++ b/public/categories/book-notes/index.html
@@ -155,7 +155,7 @@
A series of blog posts that unfortunately became a book. Not recommended.
-
+
@@ -167,7 +167,7 @@
A book about time and our relationship with it. Recommended.
-
+
@@ -180,7 +180,7 @@
Check it out on Goodreads
One of the principal joys of reading is to discover the magic hidden in the seemingly banal things in life. I would’ve never cared to think twice about the intricacies of designing buildings and urban spaces, had it not been for this book. This serves as a gentle introduction to the fascinating study of how subtle differences in design of public spaces affect interactions on a much more broader scale....
-
+
@@ -195,7 +195,7 @@ Ethics is hard.
If I’ve learnt something all these years, it is this universal maxim. Everybody wishes they’d make ethically sound choices in their lives, but more often than not, ethical choices are in contrast with cost and convenience. Nowhere is this more apparent than the way we consume food.
There are a lot of similarities between food and religion. Both are deeply personal choices which are erroneously thought of as having a clear, set winning answer....
-
+
@@ -208,7 +208,7 @@ There are a lot of similarities between food and religion. Both are deeply perso
Check it out on Goodreads
Now that I’ve moved away from reading fiction, I find that I face a lot of inertia to pick up something purely for pleasure. Maybe this is a nasty by-product of wanting to be as “productive” as possible. But the more I have drifted away from reading for pleasure, more mechanical the whole process has become for me. Partly to avoid this feeling, and partly because of my shame at seeing my bookshelf filled with dusty unread books, I picked up this one to assuage my feelings of guilt....
-
+
@@ -222,7 +222,7 @@ Now that I’ve moved away from reading fiction, I find that I face a lot of ine
Pain is inevitable, suffering is optional.
I have no affinity for running, even for short jogs, and much less for wanting to run long distances. Although this is not because I hate exercises - one of those rare things that I figured out early in life was my desire to remain healthy as long as possible and that of course means I need to keep myself fit - but probably my distaste for running stems from the monotonous nature of the activity....
-
+
@@ -235,7 +235,7 @@ I have no affinity for running, even for short jogs, and much less for wanting t
Check it out on Goodreads
I find India really fascinating sometimes, even though I’ve lived my whole life here. What the cultural multitudes and colorful festivals hide underneath is an ugly facade which threatens to break everything that has been built over the years. What I find most fascinating is how we’ve conditioned ourselves to ignore the blatant reality and move ahead with an oblivious calm, living in shit and aspiring for the gold....
-
+
@@ -249,7 +249,7 @@ I find India really fascinating sometimes, even though I’ve lived my whole lif
I have had a very curious relationship with religion, although now that I talk to others, it was a much more normal experience than what I led myself to believe. I followed the typical path of receiving a particular religion from my parents (born a “Hindu child”), which had a supporting role in my life up until my late-teenage/early-adolescent years.
As is the norm for every child brought up in religion, I used to consider myself special believing that I had a “personal relationship” with God....
-
+
@@ -262,7 +262,7 @@ As is the norm for every child brought up in religion, I used to consider myself
Check it out on Goodreads
I don’t have a lot of friends who are supporters of the ruling BJP (well at least the ones who have disclosed it publicly), and consequently whenever the conversation shifts towards the ongoings in India, more often than not, we find ourselves agreeing with each other. Although this is perfectly alright for me on most days, on few ocaasions, I find a shadow of a doubt slowly creeping up inside - what if I’m living inside a bubble, an echo-chamber where I only get exposed to the ideas which I already hold to be true, especially relevant now that everything in our lives are getting regulated by algorithms....
-
+
@@ -275,7 +275,7 @@ I don’t have a lot of friends who are supporters of the ruling BJP (well at le
Check it out on Goodreads
Reading fiction has always been a double-edged sword for me. Some of the most intimate moments I’ve spent alone is while reading fictional stories, while at the same time, feeling a pang of disappointment for myself because I wasn’t doing anything “productive.” Is this mere entertainment? Am I just escaping my real-life responsibilities and reading stories of make-believe? While I still haven’t found sincere answers to these questions, I’ve grown more confident of what I enjoy and what I don’t, which has consequently helped me find peace with this conflict....
-
+