From bccae0bd57b4a2af05af74bc545253b6e4d1fcc1 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Wed, 26 Jul 2023 12:19:53 +0100 Subject: [PATCH] Add reviews --- .../books/alan-lightman/einsteins-dream.md | 17 ++ .../reviews/books/ken-macleod/intrusion.md | 15 ++ .../books/kim-stanley-robinson/2313.md | 17 ++ layouts/partials/syndication-ref.html | 11 ++ layouts/partials/syndication.html | 36 +--- layouts/shortcodes/book.html | 0 .../hello-friend-ng/assets/scss/_single.scss | 15 ++ .../layouts/_default/single.html | 168 +++++++++++++----- .../hello-friend-ng/layouts/partials/svg.html | 4 +- .../hello-friend-ng/layouts/posts/single.html | 150 ---------------- 10 files changed, 211 insertions(+), 222 deletions(-) create mode 100644 content/posts/reviews/books/alan-lightman/einsteins-dream.md create mode 100644 content/posts/reviews/books/ken-macleod/intrusion.md create mode 100644 content/posts/reviews/books/kim-stanley-robinson/2313.md create mode 100644 layouts/partials/syndication-ref.html create mode 100644 layouts/shortcodes/book.html delete mode 100644 themes/hello-friend-ng/layouts/posts/single.html diff --git a/content/posts/reviews/books/alan-lightman/einsteins-dream.md b/content/posts/reviews/books/alan-lightman/einsteins-dream.md new file mode 100644 index 00000000..c74d473d --- /dev/null +++ b/content/posts/reviews/books/alan-lightman/einsteins-dream.md @@ -0,0 +1,17 @@ +--- +title: Einstein's Dream +subtitle: A book by Alan Lightman +type: review +date: 2013-05-08 +emoji: 📖 +draft: false +images: +syndications: +- https://www.goodreads.com/review/show/610034736 +--- + +{{< book "9781400077809" >}} + +A wonderful series of glimpses of strange worlds where time is fundamentally different - an insight into the weird and wonderful worlds Einstein must have dreamt through in his Annus Mirabilis. + +A friend commented recently that it'd be cool to read a companion book which explained the physics behind each of the worlds, and which parts of his theory of relativity was tweaked to produce each of the strange worlds, but for the non-technically inclined there's not a morsel of physics you'd need to read and love this book. diff --git a/content/posts/reviews/books/ken-macleod/intrusion.md b/content/posts/reviews/books/ken-macleod/intrusion.md new file mode 100644 index 00000000..fb7938dd --- /dev/null +++ b/content/posts/reviews/books/ken-macleod/intrusion.md @@ -0,0 +1,15 @@ +--- +title: Intrusion +subtitle: A book by Ken MacLeod +type: review +date: 2013-04-20 +emoji: 📖 +draft: false +images: +syndications: +- https://www.goodreads.com/review/show/566131190 +--- + +{{< book "9781841499390" >}} + +A very well written book with a good combination of mystery, politics, scientific fact and deep characters. Occasionally the technical talk may be overwhelming (for me it was with the politics, but there's some chemistry, technology and a little law) but it's skilfully placed to not hand-hold those with technical knowledge while allowing those without the specific knowledge enough to follow the story. diff --git a/content/posts/reviews/books/kim-stanley-robinson/2313.md b/content/posts/reviews/books/kim-stanley-robinson/2313.md new file mode 100644 index 00000000..3743dbc5 --- /dev/null +++ b/content/posts/reviews/books/kim-stanley-robinson/2313.md @@ -0,0 +1,17 @@ +--- +title: 2312 +subtitle: A book by Kim Stanley Robinson +type: review +date: 2013-05-01 +emoji: 📖 +draft: false +images: +syndications: +- https://www.goodreads.com/review/show/604253366 +--- + +{{< book "9780316098120" >}} + +Tough reading at times, I often got the nagging feeling that the author was trying to impress me with his (obviously deep and detailed) knowledge of a wide variety of topics above telling a story. This did lend to the feel of the book as a kind of fictional historical text (which I think was the intention), but I did put the book down once without the intention of picking it up again. + +Despite this, an interesting take on the future of humanity (in 2312, surprise surprise) and quite the page turner, if only in spurts. diff --git a/layouts/partials/syndication-ref.html b/layouts/partials/syndication-ref.html new file mode 100644 index 00000000..36b4d7e4 --- /dev/null +++ b/layouts/partials/syndication-ref.html @@ -0,0 +1,11 @@ +{{$title := delimit "Respond via " ( .type | strings.FirstUpper) }} +{{ if eq .type "" }} + {{ $title = "See elsewhere" }} +{{ end }} + +
+ +
+
\ No newline at end of file diff --git a/layouts/partials/syndication.html b/layouts/partials/syndication.html index cae15b8a..ad3db38b 100644 --- a/layouts/partials/syndication.html +++ b/layouts/partials/syndication.html @@ -1,34 +1,14 @@ - -
- -
-
+{{ $mailto := delimit "mailto:" site.Author.email "?subject=Re:%20" ( .Title | htmlEscape ) "&body=" (htmlEscape "Hello JP!\n\nI was reading your blog…") }} +{{ partial "syndication-ref.html" (dict "type" "email" "link" $mailto) }} + {{ range .Params.syndications }} {{ if hasPrefix . "https://bsky.app/" }} - -
- -
-
+ {{ partial "syndication-ref.html" (dict "type" "bluesky" "link" .) }} {{ else if hasPrefix . "https://hachyderm.io/" }} - -
- -
-
+ {{ partial "syndication-ref.html" (dict "type" "mastodon" "link" .) }} + {{ else if hasPrefix . "https://www.goodreads.com/" }} + {{ partial "syndication-ref.html" (dict "type" "goodreads" "link" .) }} {{ else }} - -
- -
-
+ {{ partial "syndication-ref.html" (dict "type" "" "link" .) }} {{ end }} {{end}} diff --git a/layouts/shortcodes/book.html b/layouts/shortcodes/book.html new file mode 100644 index 00000000..e69de29b diff --git a/themes/hello-friend-ng/assets/scss/_single.scss b/themes/hello-friend-ng/assets/scss/_single.scss index c7a050ff..c5823e4a 100644 --- a/themes/hello-friend-ng/assets/scss/_single.scss +++ b/themes/hello-friend-ng/assets/scss/_single.scss @@ -24,6 +24,21 @@ a { text-decoration: none; } + + * { + margin: 0; + } + + h2 { + color: $light-color-secondary; + font-style: italic; + font-size: 1rem; + font-weight: 600; + } + + .subtitle { + font-size: 1.5rem; + } } &-tags { diff --git a/themes/hello-friend-ng/layouts/_default/single.html b/themes/hello-friend-ng/layouts/_default/single.html index 4c4129b7..12b3ed6a 100644 --- a/themes/hello-friend-ng/layouts/_default/single.html +++ b/themes/hello-friend-ng/layouts/_default/single.html @@ -1,52 +1,136 @@ {{ define "main" }} -
+
- + -
-

{{ .Title | markdownify }}

+
+
+

+ {{ .Title | markdownify }} +

+ {{ with .Params.Subtitle }} +

{{ . | markdownify }}

+ {{ end }} +
- {{ if .Params.Cover }} -
- {{ .Title }} - - {{ if .Params.CoverCaption }} -
{{ .Params.CoverCaption | markdownify }}
- {{ end }} -
- {{ end }} - - {{ if .Params.toc }} -
- -
- {{ end }} + {{ with .Summary }} + + {{ end }} -
- {{ .Content }} -
-
+ {{ if .Params.Cover }} +
+ {{ .Title }} + + {{ if .Params.CoverCaption }} +
{{ .Params.CoverCaption | markdownify }}
+ {{ end }} +
+ {{ end }} + {{- if .Params.toc }}
+ +
+ {{- end }} - -
+
+ {{ .Content }} +
+ + +
+ + + +
+ + + {{ partial "pagination-single.html" . }} + + {{ if .Page.Store.Get "hasMermaid" }} + + + {{ end }} +
{{ end }} diff --git a/themes/hello-friend-ng/layouts/partials/svg.html b/themes/hello-friend-ng/layouts/partials/svg.html index f90cc73c..40291a32 100644 --- a/themes/hello-friend-ng/layouts/partials/svg.html +++ b/themes/hello-friend-ng/layouts/partials/svg.html @@ -1,7 +1,5 @@ {{- if (eq .name "amazon") -}} -{{- else if (eq .name "anonymous") -}} - {{- else if (eq .name "anilist") -}} {{- else if (eq .name "bluesky") -}} @@ -174,4 +172,6 @@ {{- else if (eq .name "youtube") -}} +{{- else -}} + {{- end -}} diff --git a/themes/hello-friend-ng/layouts/posts/single.html b/themes/hello-friend-ng/layouts/posts/single.html deleted file mode 100644 index cc99a62b..00000000 --- a/themes/hello-friend-ng/layouts/posts/single.html +++ /dev/null @@ -1,150 +0,0 @@ -{{ define "main" }} -
- - - -
-

- {{ .Title | markdownify }} -

- - {{ with .Summary }} - - {{ end }} - - {{ if .Params.Cover }} -
- {{ .Title }} - - {{ if .Params.CoverCaption }} -
{{ .Params.CoverCaption | markdownify }}
- {{ end }} -
- {{ end }} - - {{- if .Params.toc }} -
- -
- {{- end }} - - {{ if .Params.Audio }} -
- -
- {{ end }} - -
- {{ .Content }} -
-
- -
- - - -
- - - {{ partial "pagination-single.html" . }} - - {{ if .Page.Store.Get "hasMermaid" }} - - - {{ end }} -
-{{ end }}