We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90ce49 commit 53cf489Copy full SHA for 53cf489
1 file changed
themes/arm-design-system-hugo-theme/layouts/partials/head/head.html
@@ -26,13 +26,10 @@
26
<link rel="canonical" href="https://learn.arm.com{{ .Permalink }}" />
27
<title>{{ $title }}</title>
28
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 | trim " \t\r\n" -}}
33
- {{- if gt (len $d) 0 -}}
34
- <meta name="description" content="{{ $d }}">
35
- {{- end -}}
+{{/* Meta description */}}
+{{- $d := .Params.description | default "" | plainify | htmlEscape | strings.TrimSpace -}}
+{{- if gt (len $d) 0 -}}
+<meta name="description" content="{{ $d }}">
36
{{- end -}}
37
38
{{ partial "head/jsonld.html" . }}
0 commit comments