Skip to content

Commit 1d9a92b

Browse files
authored
theme: Don't exclude current section from related content
1 parent 1386d8e commit 1d9a92b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

‎content/en/functions/transform/CanHighlight.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: transform.CanHighlight
33
description: Reports whether the given code language is supported by the Chroma highlighter.
44
categories: []
5-
keywords: []
5+
keywords: [highlight]
66
params:
77
functions_and_methods:
88
aliases: []

‎content/en/functions/transform/HighlightCodeBlock.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: transform.HighlightCodeBlock
33
description: Highlights code received in context within a code block render hook.
44
categories: []
5-
keywords: []
5+
keywords: [highlight]
66
params:
77
functions_and_methods:
88
aliases: []

‎layouts/_partials/layouts/related.html‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{{- $heading := "See also" }}
2-
{{- $related := site.Pages.Related . }}
3-
{{- $related = $related | complement .CurrentSection.Pages | first 7 }}
2+
{{- $related := site.Pages.Related . | first 7}}
43

54
{{- with $related }}
65
{{ $.Store.Set "hasRelated" true }}

0 commit comments

Comments
 (0)