theme: Restore deduplication logic for related items

This commit is contained in:
Joe Mooring
2025-03-06 09:07:27 -08:00
committed by GitHub
parent a943a4bb83
commit 5f32c92ed9
16 changed files with 19 additions and 16 deletions
@@ -2,7 +2,7 @@
title: Syntax highlighting
description: Add syntax highlighting to code examples.
categories: []
keywords: []
keywords: [highlight]
aliases: [/extras/highlighting/,/extras/highlight/,/tools/syntax-highlighting/]
---
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Acos
description: Returns the arccosine, in radians, of the given number.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Asin
description: Returns the arcsine, in radians, of the given number.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Atan
description: Returns the arctangent, in radians, of the given number.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Atan2
description: Returns the arctangent, in radians, of the given number pair, determining the correct quadrant from their signs.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Cos
description: Returns the cosine of the given radian number.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Pi
description: Returns the mathematical constant pi.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Sin
description: Returns the sine of the given radian number.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.Tan
description: Returns the tangent of the given radian number.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.ToDegrees
description: ToDegrees converts radians into degrees.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: math.ToRadians
description: ToRadians converts degrees into radians.
categories: []
keywords: [trigonometry]
keywords: []
params:
functions_and_methods:
aliases: []
+1 -1
View File
@@ -2,7 +2,7 @@
title: transform.Highlight
description: Renders code with a syntax highlighter.
categories: []
keywords: []
keywords: [highlight]
params:
functions_and_methods:
aliases: [highlight]
@@ -2,7 +2,7 @@
title: Syntax highlighting styles
description: Highlight code examples using one of these styles.
categories: []
keywords: []
keywords: [highlight]
---
## Overview
+1 -1
View File
@@ -2,7 +2,7 @@
title: Highlight
description: Insert syntax-highlighted code into your content using the highlight shortcode.
categories: []
keywords: []
keywords: [highlight]
---
{{< note >}}
+1 -1
View File
@@ -9,4 +9,4 @@
- menu
- resource
- trigonometry
- highlight
+4 -1
View File
@@ -1,5 +1,8 @@
{{- $heading := "See also" }}
{{- with site.RegularPages.Related . | first 7 }}
{{- $related := site.RegularPages.Related . }}
{{- $related = $related | complement .CurrentSection.RegularPages | first 7 }}
{{- with $related }}
{{ $.Store.Set "hasRelated" true }}
<h2
class="text-base font-semibold tracking-tight text-gray-600 dark:text-gray-400">