{{- /* related-pages.html — renders the current page's relatedPages front-matter (a list of slugs) as cards. Matches by .Slug or file base name. */ -}} {{- $current := . -}} {{- $related := .Params.relatedPages -}} {{- if $related -}} {{- $found := slice -}} {{- range $slug := $related -}} {{- range $p := $current.Site.Pages -}} {{- if and (ne $p $current) (not $p.IsHome) -}} {{- if or (eq $p.Slug $slug) (and $p.File (eq $p.File.ContentBaseName $slug)) -}} {{- $found = $found | append $p -}} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- with $found -}}
{{- range . -}} {{ .LinkTitle }}

{{ .Params.description | default (.Summary | plainify) | truncate 110 }}

Read more →
{{- end -}}
{{- end -}} {{- end -}}