From 1b7efef41e6694b2e9b36f12e74241553b974d3a Mon Sep 17 00:00:00 2001 From: Siddhartha Date: Mon, 26 Jun 2023 01:09:31 +0530 Subject: [PATCH] add openring, add 'updated on' meta field --- assets/css/core/theme-vars.css | 2 + config.yml | 25 ++- content/archive.md | 2 +- content/posts/scared-in-lockdown.md | 2 +- layouts/partials/openring.html | 77 ++++++++ layouts/partials/post_meta.html | 4 + public/404.html | 7 +- public/about/index.html | 94 +++++++++- public/archive/index.html | 98 +++++----- ...df1e9ca257ea9b767d9780cb0718c2435f78e5.css | 7 + public/categories/book-notes/index.html | 27 +-- .../categories/book-notes/page/2/index.html | 27 +-- public/categories/cinema/index.html | 23 ++- public/categories/drawings/index.html | 19 +- public/categories/index.html | 7 +- public/categories/photography/index.html | 9 +- public/categories/poetry/index.html | 11 +- public/index.html | 30 +-- public/page/2/index.html | 27 +-- public/page/3/index.html | 27 +-- public/page/4/index.html | 19 +- public/photography/index.html | 94 +++++++++- public/posts/cinema/3-iron/index.html | 94 +++++++++- public/posts/cinema/after-life/index.html | 94 +++++++++- public/posts/cinema/anatolia/index.html | 94 +++++++++- public/posts/cinema/darjeeling/index.html | 94 +++++++++- public/posts/cinema/oslo-august/index.html | 94 +++++++++- public/posts/cinema/riding-solo/index.html | 94 +++++++++- public/posts/cinema/waking-life/index.html | 94 +++++++++- public/posts/cinema/winter-sleep/index.html | 94 +++++++++- .../deference-vs-indifference/index.html | 94 +++++++++- .../drawings/a-beautiful-woman/index.html | 94 +++++++++- public/posts/drawings/chaplin/index.html | 94 +++++++++- public/posts/drawings/einstein/index.html | 94 +++++++++- public/posts/drawings/gandhi/index.html | 94 +++++++++- .../posts/drawings/martin-freeman/index.html | 94 +++++++++- public/posts/drawings/teresa/index.html | 94 +++++++++- public/posts/index.html | 27 +-- public/posts/page/2/index.html | 27 +-- public/posts/page/3/index.html | 27 +-- public/posts/page/4/index.html | 19 +- .../reading/annihilation-of-caste/index.html | 94 +++++++++- public/posts/reading/azadi/index.html | 94 +++++++++- public/posts/reading/bad-blood/index.html | 94 +++++++++- public/posts/reading/behave-review/index.html | 94 +++++++++- .../posts/reading/empire-of-pain/index.html | 94 +++++++++- .../reading/four-thousand-weeks/index.html | 94 +++++++++- .../glimpses-of-world-history/index.html | 94 +++++++++- public/posts/reading/great-music/index.html | 94 +++++++++- .../reading/life-between-buildings/index.html | 94 +++++++++- public/posts/reading/parenting/index.html | 94 +++++++++- .../posts/reading/range-a-review/index.html | 94 +++++++++- .../reading/reasons-to-stay-alive/index.html | 94 +++++++++- .../posts/reading/running-murakami/index.html | 94 +++++++++- public/posts/reading/shame-rushdie/index.html | 94 +++++++++- .../posts/reading/so-good-newport/index.html | 94 +++++++++- public/posts/reading/stoner/index.html | 94 +++++++++- .../reading/the-course-of-love/index.html | 94 +++++++++- .../index.html | 94 +++++++++- .../posts/reading/the-way-we-eat/index.html | 94 +++++++++- public/posts/reading/waking-up/index.html | 94 +++++++++- public/posts/scared-in-lockdown/index.html | 96 +++++++++- public/search/index.html | 11 +- public/sitemap.xml | 174 +++++++++--------- public/tags/animal-cruelty/index.html | 9 +- public/tags/animation/index.html | 9 +- public/tags/architecture/index.html | 9 +- public/tags/asia/index.html | 11 +- public/tags/audiobook/index.html | 15 +- public/tags/career-advice/index.html | 11 +- public/tags/classical-music/index.html | 9 +- public/tags/colorful-quirks/index.html | 9 +- public/tags/debating-ethics/index.html | 9 +- public/tags/depression/index.html | 9 +- public/tags/existentialism/index.html | 9 +- public/tags/fast-food-books/index.html | 9 +- public/tags/favourites/index.html | 27 +-- public/tags/favourites/page/2/index.html | 11 +- public/tags/fiction/index.html | 13 +- public/tags/foreign-cinema/index.html | 17 +- public/tags/health/index.html | 9 +- public/tags/history/index.html | 11 +- public/tags/index.html | 7 +- public/tags/india/index.html | 9 +- public/tags/indian-authors/index.html | 15 +- public/tags/journalism/index.html | 9 +- public/tags/letters/index.html | 9 +- public/tags/meditation/index.html | 9 +- public/tags/minimalism/index.html | 9 +- public/tags/motorcycling/index.html | 9 +- public/tags/non-fiction/index.html | 27 +-- public/tags/non-fiction/page/2/index.html | 17 +- public/tags/norwegian/index.html | 9 +- public/tags/parenting/index.html | 9 +- public/tags/philosophy/index.html | 11 +- public/tags/poetry/index.html | 11 +- public/tags/productivity/index.html | 11 +- public/tags/public-health/index.html | 9 +- public/tags/relationship/index.html | 9 +- public/tags/religion/index.html | 11 +- public/tags/review/index.html | 9 +- public/tags/sketching/index.html | 19 +- public/tags/society/index.html | 9 +- public/tags/turkey/index.html | 11 +- .../tags/understanding-ourselves/index.html | 11 +- public/tags/writing/index.html | 11 +- 106 files changed, 4191 insertions(+), 594 deletions(-) create mode 100644 layouts/partials/openring.html create mode 100644 public/assets/css/stylesheet.4f5576b27f1a8ee2d1559082cedf1e9ca257ea9b767d9780cb0718c2435f78e5.css diff --git a/assets/css/core/theme-vars.css b/assets/css/core/theme-vars.css index 5c17715..2c20b2a 100644 --- a/assets/css/core/theme-vars.css +++ b/assets/css/core/theme-vars.css @@ -16,6 +16,7 @@ --code-bg: rgb(245, 245, 245); --border: rgb(238, 238, 238); --link-color: rgb(255, 0, 0); + --openring-bg: rgb(238, 238, 238); } .dark { @@ -29,6 +30,7 @@ --code-bg: rgb(55, 56, 62); --border: rgb(51, 51, 51); --link-color: rgb(220, 20, 60); + --openring-bg: rgb(55, 56, 62); } .list { diff --git a/config.yml b/config.yml index 9b12720..734b040 100644 --- a/config.yml +++ b/config.yml @@ -5,24 +5,37 @@ theme: "PaperMod" buildDrafts: false +enableGitInfo: true + +frontmatter: + lastmod: + - lastmod + - :git + - date + - publishDate + menu: main: + - identifier: about + name: About + url: /about + weight: 10 - identifier: archive name: Archive url: archive - weight: 10 + weight: 20 - identifier: categories name: Categories url: categories - weight: 20 + weight: 30 - identifier: tags name: Tags url: /tags/ - weight: 30 + weight: 40 - identifier: search name: Search url: /search/ - weight: 40 + weight: 50 params: env: production @@ -68,9 +81,7 @@ params: - - - I write about [books](/categories/book-notes), [cinema](/categories/cinema) and life, whenever I can carve some time off from [building One800.](https://www.one800.help/) - - - [Read more](/about) about my (silly) motivations behind creating this website. + - I write about [books](/categories/book-notes), [cinema](/categories/cinema), [life](/categories/poetry) and [engineering](/categories/technical), whenever I can carve some time off from [building One800](https://www.one800.help/). Feel free to jump into the recent posts below, or start with some [byte sized TILs](/categories/til). profileMode: enabled: false diff --git a/content/archive.md b/content/archive.md index e0fc55f..db5a8b6 100644 --- a/content/archive.md +++ b/content/archive.md @@ -1,5 +1,5 @@ --- title: "Archive" layout: "archives" -description: "" +description: "Everything I've ever written, compiled in one place." --- diff --git a/content/posts/scared-in-lockdown.md b/content/posts/scared-in-lockdown.md index e0cf6b7..a45f34f 100644 --- a/content/posts/scared-in-lockdown.md +++ b/content/posts/scared-in-lockdown.md @@ -72,4 +72,4 @@ it has to. ----------------------------------- -**A poem penned down during the Coronavirus pandemic. I see people who are struggling with mental health issues which, I can only imagine, would have exacerbated during these times. Take care of yourself, folks. Don't forget that you matter. A lot.** +A poem penned down during the Coronavirus pandemic. I see people who are struggling with mental health issues which, I can only imagine, would have exacerbated during these times. Take care of yourself, folks. Don't forget that you matter. A lot. diff --git a/layouts/partials/openring.html b/layouts/partials/openring.html new file mode 100644 index 0000000..b92c240 --- /dev/null +++ b/layouts/partials/openring.html @@ -0,0 +1,77 @@ + +
+

Articles from blogs I follow around the net

+
+ +
+

+ Back to America +

+

+ After spending much of the past three years in Denmark, our family is returning to America full time this summer. The original reasons for temporarily emigrating – the prolonged school lockdowns and other pandemic madness – have long since evaporated, a…

+ + via David Heinemeier Hansson + + June 25, 2023 +
+ +
+

+ My First Impressions of Nix +

+

Nix is a tool for configuring software environments according to source files. I’ve been hearing more and more about Nix on Hacker News and Twitter. The idea of it appeals to me, so I’ve been tinkering with it over the past few weeks. +My history with infra…

+ + via mtlynch.io + + June 17, 2023 +
+ +
+

+ Flexibility is Overrated – SWR Series Part 58 +

+

June 16, 2023 I wonder if I’ll ever run out of material for the Safe Withdrawal Series. Fifty-eight parts now, and the new ideas come faster than I can write posts these days. This month, I initially planned to write about the effects of timing Social Sec…

+ + via Early Retirement Now + + June 16, 2023 +
+ +
+

+ Generated by + openring +

+
+ diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 9ac142c..c184697 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -4,6 +4,10 @@ {{- $scratch.Add "meta" (slice (printf "🗓 %s" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }} {{- end }} +{{- if not .Lastmod.IsZero -}} +{{- $scratch.Add "meta" (slice (printf "🔄 %s" (.Lastmod) (.Lastmod | 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 }} diff --git a/public/404.html b/public/404.html index b27b3fb..4569329 100644 --- a/public/404.html +++ b/public/404.html @@ -11,7 +11,7 @@ - + @@ -113,6 +113,11 @@