Skip to content

Commit b0d2c8b

Browse files
Trim whitespace from meta description for cleaner output
1 parent 0e7cbb7 commit b0d2c8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{/* Meta description: short, task-oriented summary for SERP and AI selection.
3030
This is intentionally distinct from the JSON-LD description. */}}
3131
{{- with .Params.description -}}
32-
{{- $d := . | plainify | htmlEscape | strings.TrimSpace -}}
32+
{{- $d := . | plainify | htmlEscape | trim " \t\r\n" -}}
3333
{{- if gt (len $d) 0 -}}
3434
<meta name="description" content="{{ $d }}">
3535
{{- end -}}

0 commit comments

Comments
 (0)