diff --git a/content/en/content-management/syntax-highlighting.md b/content/en/content-management/syntax-highlighting.md index 253add224..7e87efa49 100644 --- a/content/en/content-management/syntax-highlighting.md +++ b/content/en/content-management/syntax-highlighting.md @@ -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/] --- diff --git a/content/en/functions/math/Acos.md b/content/en/functions/math/Acos.md index 9a953788d..32537e2dd 100644 --- a/content/en/functions/math/Acos.md +++ b/content/en/functions/math/Acos.md @@ -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: [] diff --git a/content/en/functions/math/Asin.md b/content/en/functions/math/Asin.md index 45ff754f5..76114a72e 100644 --- a/content/en/functions/math/Asin.md +++ b/content/en/functions/math/Asin.md @@ -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: [] diff --git a/content/en/functions/math/Atan.md b/content/en/functions/math/Atan.md index a98171e4b..5c8268b47 100644 --- a/content/en/functions/math/Atan.md +++ b/content/en/functions/math/Atan.md @@ -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: [] diff --git a/content/en/functions/math/Atan2.md b/content/en/functions/math/Atan2.md index fd37903b1..942fffdf8 100644 --- a/content/en/functions/math/Atan2.md +++ b/content/en/functions/math/Atan2.md @@ -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: [] diff --git a/content/en/functions/math/Cos.md b/content/en/functions/math/Cos.md index bb0f3b9b2..249a064bb 100644 --- a/content/en/functions/math/Cos.md +++ b/content/en/functions/math/Cos.md @@ -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: [] diff --git a/content/en/functions/math/Pi.md b/content/en/functions/math/Pi.md index 44125f544..0bc74bf03 100644 --- a/content/en/functions/math/Pi.md +++ b/content/en/functions/math/Pi.md @@ -2,7 +2,7 @@ title: math.Pi description: Returns the mathematical constant pi. categories: [] -keywords: [trigonometry] +keywords: [] params: functions_and_methods: aliases: [] diff --git a/content/en/functions/math/Sin.md b/content/en/functions/math/Sin.md index 3db4d21c7..b5ab86bb8 100644 --- a/content/en/functions/math/Sin.md +++ b/content/en/functions/math/Sin.md @@ -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: [] diff --git a/content/en/functions/math/Tan.md b/content/en/functions/math/Tan.md index be8f8ac88..c4f861c05 100644 --- a/content/en/functions/math/Tan.md +++ b/content/en/functions/math/Tan.md @@ -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: [] diff --git a/content/en/functions/math/ToDegrees.md b/content/en/functions/math/ToDegrees.md index 9438c46bf..f01cd4728 100644 --- a/content/en/functions/math/ToDegrees.md +++ b/content/en/functions/math/ToDegrees.md @@ -2,7 +2,7 @@ title: math.ToDegrees description: ToDegrees converts radians into degrees. categories: [] -keywords: [trigonometry] +keywords: [] params: functions_and_methods: aliases: [] diff --git a/content/en/functions/math/ToRadians.md b/content/en/functions/math/ToRadians.md index 8e5132490..b5acbb65b 100644 --- a/content/en/functions/math/ToRadians.md +++ b/content/en/functions/math/ToRadians.md @@ -2,7 +2,7 @@ title: math.ToRadians description: ToRadians converts degrees into radians. categories: [] -keywords: [trigonometry] +keywords: [] params: functions_and_methods: aliases: [] diff --git a/content/en/functions/transform/Highlight.md b/content/en/functions/transform/Highlight.md index 18f78eaf0..5633f2256 100644 --- a/content/en/functions/transform/Highlight.md +++ b/content/en/functions/transform/Highlight.md @@ -2,7 +2,7 @@ title: transform.Highlight description: Renders code with a syntax highlighter. categories: [] -keywords: [] +keywords: [highlight] params: functions_and_methods: aliases: [highlight] diff --git a/content/en/quick-reference/syntax-highlighting-styles.md b/content/en/quick-reference/syntax-highlighting-styles.md index 68a03c8df..14b313cbc 100644 --- a/content/en/quick-reference/syntax-highlighting-styles.md +++ b/content/en/quick-reference/syntax-highlighting-styles.md @@ -2,7 +2,7 @@ title: Syntax highlighting styles description: Highlight code examples using one of these styles. categories: [] -keywords: [] +keywords: [highlight] --- ## Overview diff --git a/content/en/shortcodes/highlight.md b/content/en/shortcodes/highlight.md index f4e133ad7..08963e566 100755 --- a/content/en/shortcodes/highlight.md +++ b/content/en/shortcodes/highlight.md @@ -2,7 +2,7 @@ title: Highlight description: Insert syntax-highlighted code into your content using the highlight shortcode. categories: [] -keywords: [] +keywords: [highlight] --- {{< note >}} diff --git a/data/keywords.yaml b/data/keywords.yaml index a12f45c4a..106929884 100644 --- a/data/keywords.yaml +++ b/data/keywords.yaml @@ -9,4 +9,4 @@ - menu - resource -- trigonometry +- highlight diff --git a/layouts/partials/layouts/related.html b/layouts/partials/layouts/related.html index 490118997..4507516b7 100644 --- a/layouts/partials/layouts/related.html +++ b/layouts/partials/layouts/related.html @@ -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 }}