{{- $books := where .Site.Pages "Section" "library" -}} {{- $book := index (where $books "File.BaseFileName" (.Get 0)) 0 -}} {{- if $book }}

{{ $book.Title }}

{{- $rating := $book.Params.rating -}} {{- $fullStars := math.Floor $rating -}}
评分: {{- range seq $fullStars }} ★ {{- end -}}
{{ $book.Content }}
{{- else }}

⚠️ 无法找到书评: {{ .Get 0 }}

{{- end }}