mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
theme: Include section pages in related content
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
2b6bda6bd6
commit
533149bf95
@@ -1,6 +1,6 @@
|
||||
{{- $heading := "See also" }}
|
||||
{{- $related := site.RegularPages.Related . }}
|
||||
{{- $related = $related | complement .CurrentSection.RegularPages | first 7 }}
|
||||
{{- $related := site.Pages.Related . }}
|
||||
{{- $related = $related | complement .CurrentSection.Pages | first 7 }}
|
||||
|
||||
{{- with $related }}
|
||||
{{ $.Store.Set "hasRelated" true }}
|
||||
|
||||
Reference in New Issue
Block a user