mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 23:36:06 -04:00
theme: Include section pages in related content
This commit is contained in:
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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user