mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 12:14:53 -04:00
theme: Don't exclude current section from related content
This commit is contained in:
parent
1386d8ed24
commit
1d9a92bc7f
@ -2,7 +2,7 @@
|
||||
title: transform.CanHighlight
|
||||
description: Reports whether the given code language is supported by the Chroma highlighter.
|
||||
categories: []
|
||||
keywords: []
|
||||
keywords: [highlight]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: transform.HighlightCodeBlock
|
||||
description: Highlights code received in context within a code block render hook.
|
||||
categories: []
|
||||
keywords: []
|
||||
keywords: [highlight]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
|
@ -1,6 +1,5 @@
|
||||
{{- $heading := "See also" }}
|
||||
{{- $related := site.Pages.Related . }}
|
||||
{{- $related = $related | complement .CurrentSection.Pages | first 7 }}
|
||||
{{- $related := site.Pages.Related . | first 7}}
|
||||
|
||||
{{- with $related }}
|
||||
{{ $.Store.Set "hasRelated" true }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user