{{- /* Related posts for single pages. Uses Hugo's built-in `Related` keyword index. Requires `related:` config in site hugo.yaml — see docs/config.md. Silently no-op when no relations are found. */ -}} {{- $count := site.Params.relatedPostsCount | default 3 -}} {{- $related := slice -}} {{- if gt $count 0 -}} {{- $related = first $count (site.RegularPages.Related .) -}} {{- end -}} {{- with $related -}} {{- end -}}