{{ define "main" }}
{{ partial "components/logo" (dict "link" "library" "ctx" . "class" "round-sticker absolute w-8 h-8 md:w-20 md:h-20 top-8 -right-8 md:-right-12" "imageClass" "w-full") }}

{{ .Title }}

{{- $rating := .Params.rating -}} {{- $fullStars := math.Floor $rating -}}

{{ with .Params.authors }}{{ delimit . ", " }}{{ end }}

{{- range seq $fullStars }} ⭐ {{- end -}}

{{ partial "posts/toc" . }}
{{ .Content }}
{{ partial "posts/endnotes" . }}

于 {{ partial "components/date" . }} 读完

{{ partial "components/tags" . }}

{{ partial "components/backlinks" (dict "filename" .File.BaseFileName "type" "library" "context" .) }} {{ partial "posts/action-menu.html" . }} {{ partial "components/back-to-top.html" . }} {{ with .Params.authors }} {{ $author := index . 0 }} {{ $term := index $.Site.Taxonomies.authors $author }} {{ if and $term (gt (len $term.Pages) 1) }}

我读过的 {{ $author }} 的其它书籍

{{ range $term.Pages }} {{ if ne .File.UniqueID $.File.UniqueID }}
{{ partial "items/book" (dict "ctx" .) }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }}