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 "tags.html" .Params.tags }} + {{ partial "series-tags.html" . }} + +

+ + + + + + + + {{ i18n "wordCount" .Page.WordCount }} +

+ + {{ if in .Params.tags "from-tumblr" }} +

+ + From tumblr archive +

+ {{ end }} + +

+ + + + + + + + {{ if .Site.Params.dateformNumTime }} + {{ dateFormat .Site.Params.dateformNumTime .Date }} + {{ else }} + {{ dateFormat "2006-01-02 15:04" .Date }} + {{ end }} + + + {{ if .Lastmod }} + {{ if not (eq .Lastmod .Date )}} + {{ if .Site.Params.dateformNumTime }} + ({{ i18n "lastModified" }}: {{ dateFormat .Site.Params.dateformNumTime .Lastmod.Local }}) + {{ else }} + ({{ i18n "lastModified" }}: {{ dateFormat "2006-01-02 15:04" .Lastmod.Local }}) + {{ end }} + {{ end }} + {{ end }} +

+
+ +
+
+ {{ partial "syndication.html" . }} +
+ + {{ 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" }} -
- -
-

- - - - - {{ i18n "readingTime" .Page.ReadingTime }} - - {{ if .IsTranslated }} | {{ i18n "postAvailable" }} - {{ range .Translations }} - - {{ end}} - {{ end }} -

- -
- -
-

- {{ .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 "tags.html" .Params.tags }} - {{ partial "series-tags.html" . }} - -

- - - - - - - - {{ i18n "wordCount" .Page.WordCount }} -

- - {{ if in .Params.tags "from-tumblr" }} -

- - From tumblr archive -

- {{ end }} - -

- - - - - - - - {{ if .Site.Params.dateformNumTime }} - {{ dateFormat .Site.Params.dateformNumTime .Date }} - {{ else }} - {{ dateFormat "2006-01-02 15:04" .Date }} - {{ end }} - - - {{ if .Lastmod }} - {{ if not (eq .Lastmod .Date )}} - {{ if .Site.Params.dateformNumTime }} - ({{ i18n "lastModified" }}: {{ dateFormat .Site.Params.dateformNumTime .Lastmod.Local }}) - {{ else }} - ({{ i18n "lastModified" }}: {{ dateFormat "2006-01-02 15:04" .Lastmod.Local }}) - {{ end }} - {{ end }} - {{ end }} -

- - {{- if .GitInfo }} -

- - - - - - - {{ .GitInfo.AbbreviatedHash }} - @ {{ if .Site.Params.dateformNum }}{{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }}{{ else }}{{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }}{{ end }} -

- {{- end }} -
- -
-
- {{ partial "syndication.html" . }} -
- - {{ partial "pagination-single.html" . }} - - {{ if .Page.Store.Get "hasMermaid" }} - - - {{ end }} -
-{{ end }}