mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 09:14:45 -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" }}
|
{{- $heading := "See also" }}
|
||||||
{{- $related := site.RegularPages.Related . }}
|
{{- $related := site.Pages.Related . }}
|
||||||
{{- $related = $related | complement .CurrentSection.RegularPages | first 7 }}
|
{{- $related = $related | complement .CurrentSection.Pages | first 7 }}
|
||||||
|
|
||||||
{{- with $related }}
|
{{- with $related }}
|
||||||
{{ $.Store.Set "hasRelated" true }}
|
{{ $.Store.Set "hasRelated" true }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user