diff --git a/layouts/partials/head/schema.html b/layouts/partials/head/schema.html
index 22f3b00..e0ea512 100644
--- a/layouts/partials/head/schema.html
+++ b/layouts/partials/head/schema.html
@@ -78,7 +78,9 @@
{{- end }}
"url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}",
- "genre" : [ {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}"{{ $tag }}" {{ end }}]
+ {{- with $tags := .Params.tags }}
+ "genre" : [ {{ range $i, $tag := $tags }}{{ if $i }}, {{ end }}"{{ $tag }}" {{ end }}]
+ {{- end }}
}
{{ end }}