Skip to content

Commit bb25d0a

Browse files
Add meta description tag for improved SEO and AI selection
1 parent aa67d5d commit bb25d0a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • themes/arm-design-system-hugo-theme/layouts/partials/head

themes/arm-design-system-hugo-theme/layouts/partials/head/head.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
<link rel="canonical" href="https://learn.arm.com{{ .Permalink }}" />
2727
<title>{{ $title }}</title>
2828

29+
{{/* Meta description: short, task-oriented summary for SERP and AI selection.
30+
This is intentionally distinct from the JSON-LD description. */}}
31+
{{- with .Params.description -}}
32+
{{- $d := . | plainify | htmlEscape | strings.TrimSpace -}}
33+
{{- if gt (len $d) 0 -}}
34+
<meta name="description" content="{{ $d }}">
35+
{{- end -}}
36+
{{- end -}}
37+
2938
{{ partial "head/jsonld.html" . }}
3039

3140
<!-- Include the Arm standard Lato font for machines that don't have by default (Mac) -->

0 commit comments

Comments
 (0)