diff --git a/config.yml b/config.yml index ce70e58..2e8e4d6 100644 --- a/config.yml +++ b/config.yml @@ -65,7 +65,7 @@ params: cover: hidden: true hiddenInList: true - hiddenInSingle: false + hiddenInSingle: true label: icon: /apple-touch-icon.png diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 78d97fa..bb9b44b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,9 +3,16 @@
{{ partial "breadcrumbs.html" . }} -

+

{{ .Title }} - {{- if .Draft }}  [draft]{{- end }} + {{- if .Draft }} + + + + + + {{- end }}

{{- if .Description }}
@@ -21,8 +28,8 @@
{{- end }}
- {{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }} - {{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }} + {{- $isHidden := (.Param "cover.hiddenInSingle") | default (.Param "cover.hidden") | default false }} + {{- partial "cover.html" (dict "cxt" . "IsSingle" true "isHidden" $isHidden) }} {{- if (.Param "ShowToc") }} {{- partial "toc.html" . }} {{- end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index f4bc2a0..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,172 +0,0 @@ - - - -{{- if hugo.IsProduction | or (eq site.Params.env "production") | and (ne .Params.robotsNoIndex true) }} - -{{- else }} - -{{- end }} - -{{- /* Title */}} -{{ if .IsHome }}{{ else }}{{ if .Title }}{{ .Title }} | {{ end }}{{ end }}{{ site.Title }} - -{{- /* Meta */}} -{{- if .IsHome }} -{{ with site.Params.keywords -}}{{ end }} -{{- else }} - -{{- end }} - - - -{{- if site.Params.analytics.google.SiteVerificationTag }} - -{{- end }} -{{- if site.Params.analytics.yandex.SiteVerificationTag }} - -{{- end }} -{{- if site.Params.analytics.bing.SiteVerificationTag }} - -{{- end }} -{{- if site.Params.analytics.naver.SiteVerificationTag }} - -{{- end }} - - - -{{- /* Styles */}} - -{{- /* includes */}} -{{- $includes := slice }} -{{- $includes = $includes | append (" " | resources.FromString "assets/css/includes-blank.css")}} - -{{- if not (eq site.Params.assets.disableScrollBarStyle true) }} - {{- $ScrollStyle := (resources.Get "css/includes/scroll-bar.css") }} - {{- $includes = (append $ScrollStyle $includes) }} -{{- end }} - -{{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }} - -{{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} -{{- $reset := (resources.Get "css/core/reset.css") }} -{{- $media := (resources.Get "css/core/zmedia.css") }} -{{- $license_css := (resources.Get "css/core/license.css") }} -{{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }} - -{{- /* include `an-old-hope` if hljs is on */}} -{{- $isHLJSdisabled := (site.Params.assets.disableHLJS | default false) }} -{{- $hljs := (cond ($isHLJSdisabled) (".chroma { background-color: unset !important;}" | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} - -{{- /* order is important */}} -{{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }} -{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" | resources.Minify }} - -{{- /* bundle all required css */}} -{{- /* Add extended css after theme style */ -}} -{{- $stylesheet := (slice $license_css $core $extended) | resources.Concat "assets/css/stylesheet.css" }} - -{{- if not site.Params.assets.disableFingerprinting }} -{{- $stylesheet := $stylesheet | fingerprint }} - -{{- else }} - -{{- end }} - -{{- /* Search */}} -{{- if (eq .Layout `search`) -}} - -{{- $fastsearch := resources.Get "js/fastsearch.js" | js.Build (dict "params" (dict "fuseOpts" site.Params.fuseOpts)) | resources.Minify }} -{{- $fusejs := resources.Get "js/fuse.basic.min.js" }} -{{- $license_js := resources.Get "js/license.js" }} -{{- if not site.Params.assets.disableFingerprinting }} -{{- $search := (slice $fusejs $license_js $fastsearch ) | resources.Concat "assets/js/search.js" | fingerprint }} - -{{- else }} -{{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" }} - -{{- end }} -{{- end -}} - -{{- /* Highlight.js */}} -{{- $isHLJSdisabled := (site.Params.assets.disableHLJS | default .Params.disableHLJS ) }} -{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }} -{{- if not site.Params.assets.disableFingerprinting }} -{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | fingerprint }} - -{{- else }} -{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" }} - -{{- end }} -{{- end }} - -{{- /* Favicons */}} - - - - - - - - -{{- /* RSS */}} -{{ range .AlternativeOutputFormats -}} - -{{ end -}} -{{- range .AllTranslations -}} - -{{ end -}} - - - -{{- partial "extend_head.html" . -}} - -{{- /* Misc */}} -{{- if hugo.IsProduction | or (eq site.Params.env "production") }} -{{- template "_internal/google_analytics.html" . }} -{{- template "partials/templates/opengraph.html" . }} -{{- template "partials/templates/twitter_cards.html" . }} -{{- template "partials/templates/schema_json.html" . }} -{{- end -}} diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 9ac142c..988f930 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -21,5 +21,5 @@ {{- end}} {{- with ($scratch.Get "meta") }} -{{- delimit . "     " -}} +{{- delimit . " · " | safeHTML -}} {{- end -}} diff --git a/public/404.html b/public/404.html index 4569329..32c6651 100644 --- a/public/404.html +++ b/public/404.html @@ -10,8 +10,7 @@ - - + @@ -36,7 +35,7 @@ --secondary: rgb(155, 156, 157); --tertiary: rgb(65, 66, 68); --content: rgb(196, 196, 197); - --hljs-bg: rgb(46, 46, 51); + --code-block-bg: rgb(46, 46, 51); --code-bg: rgb(55, 56, 62); --border: rgb(51, 51, 51); } @@ -146,7 +145,7 @@
-

Azadi by Arundhati Roy +

Azadi by Arundhati Roy

A series of essays on the bleak reality in India. Highly recommended.

- +
-

Stoner by John Williams +

Stoner by John Williams

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....

- +
-

Bad Blood by John Carreyrou +

Bad Blood by John Carreyrou

Check it out on Goodreads How to fool the world and become a Billionaire I remember hearing about Elizabeth Holmes when I was in my late teens, at that impressionable age when you get hyper-inspired by reading about icons that are going to change the world. There was a profile of her in Wired, with an eye-catching image of her wearing a turtleneck black sweater holding what looked like a test-tube with a tiny amount of blood with a science-y background....

- +
-

Waking Up by Sam Harris +

Waking Up by Sam Harris

@@ -218,26 +217,26 @@ How to fool the world and become a Billionaire I remember hearing about Elizabet A disappointing jumble of thoughts Disappointed. I am an atheist interested in the power of mindfulness and the whole world of so-called spirituality, so naturally, I am the ideal audience that Sam Harris is looking for. But it disappointed in almost every domain that I had expectations in. Using deep-sounding difficult words and wrapping them in an almost mythical aura of “Consciousness”, this one was a huge letdown....

- +
-

Glimpses of World History by Jawaharlal Nehru +

Glimpses of World History by Jawaharlal Nehru

Check it out on Goodreads World history in a nutshell More than 1100 pages, this behemoth of a book still fails to capture the whole essence of world history - and rightly so. How can you combine over 2000 years of human history and still do justice to every element? But the unique manner in which this book - or more appropriately, collection of letters - has been written, it shines brightly amongst the plethora of history books you can find on this vast subject of world history....

- +
-

Reasons to Stay Alive by Matt Haig +

Reasons to Stay Alive by Matt Haig

@@ -245,39 +244,39 @@ World history in a nutshell More than 1100 pages, this behemoth of a book still Reasons you should read this book: If you’ve ever had a panic attack. If you’ve ever counted the number of times the ceiling fan rotates, just so you could avoid dealing with the endless voices in your head. If you’ve ever felt ashamed to admit that you might be suffering from the D-word. If reading about personal stories of how people overcame their mental illnesses soothes you....

- +
-

How to Listen to and Understand Great Music by Robert Greenberg +

How to Listen to and Understand Great Music by Robert Greenberg

Check it out on Goodreads I have been a lover of music since my early childhood - runs in the family - and have imitated and performed songs (mostly inside my own head) on numerous occasions. Despite this lifelong love affair with music of all kinds, there was one particular genre of music that always baffled me. Mostly because of my own ignorance, but partially also because nobody else was talking about it....

- +
-

Behave: The Biology of Humans at Our Best and Worst by Robert Sapolsky +

Behave: The Biology of Humans at Our Best and Worst by Robert Sapolsky

Check it out on Goodreads There are few books which leave you in a mesmerizing state after having read them. You ponder about it for days to come, want to scream your head off about it to anyone who’d listen, and then dwell in this fear of picking up another book because how can something else ever come close to being this perfect! I have felt this way before - first when I’d finished The Complete Sherlock Holmes, later when I was left in a daze for multiple days after finishing the notorious and brilliant House of Leaves, and much more recently when I was unable to sleep after reading Why We Sleep by Matthew Walker....

- +
-

Range by David Epstein +

Range by David Epstein

@@ -285,7 +284,7 @@ There are few books which leave you in a mesmerizing state after having read the Started with a tightly-knit structure, but faltered at the end. The last few chapters were a slog to get through - mostly because of numerous “business-class” style case studies. Main takeaway? Other than the central idea around which the book revolves (and succinctly mentioned as the book subtitle too), the idea of interleaving is what struck me the most. I had already read about this particular method in Michael Nielsen’s brilliant post on Anki (“Augmenting Long-term Memory”) and it was interesting to read about it formally in the book....

- +