mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
theme: Restore deduplication logic for related items
This commit is contained in:
@@ -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/]
|
||||
---
|
||||
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: math.Pi
|
||||
description: Returns the mathematical constant pi.
|
||||
categories: []
|
||||
keywords: [trigonometry]
|
||||
keywords: []
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: math.ToDegrees
|
||||
description: ToDegrees converts radians into degrees.
|
||||
categories: []
|
||||
keywords: [trigonometry]
|
||||
keywords: []
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title: math.ToRadians
|
||||
description: ToRadians converts degrees into radians.
|
||||
categories: []
|
||||
keywords: [trigonometry]
|
||||
keywords: []
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -9,4 +9,4 @@
|
||||
|
||||
- menu
|
||||
- resource
|
||||
- trigonometry
|
||||
- highlight
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user