fix jsonld
parent
08049607d1
commit
683aa04858
|
@ -89,5 +89,9 @@ $breadcrumbs := dict
|
|||
"itemListElement" (partial "breadcrumb-items" .)
|
||||
-}}
|
||||
<script type="application/ld+json">
|
||||
{{ slice $brand $article $breadcrumbs | jsonify (dict "indent" " ") | safeJS }}
|
||||
{{- $metaElements := slice $brand $article }}
|
||||
{{- if index $breadcrumbs.itemListElement }}
|
||||
{{- $metaElements = append $metaElements (slice $breadcrumbs) -}}
|
||||
{{- end }}
|
||||
{{ $metaElements | jsonify (dict "indent" " ") | safeJS }}
|
||||
</script>
|
Loading…
Reference in New Issue