Fix JSON-LD: use 'safe' filter to prevent HTML escaping of & in title

This commit is contained in:
2026-09-11 20:43:37 +02:00
parent 47722f6a14
commit e6bc73eb17
+2 -2
View File
@@ -30,10 +30,10 @@
{% if parent %}
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "{{ section }}", "item": "{{ site.url }}/" },
{ "@type": "ListItem", "position": 2, "name": "{{ title }}", "item": "{{ site.url }}{{ page.url }}" }
{ "@type": "ListItem", "position": 2, "name": "{{ title | safe }}", "item": "{{ site.url }}{{ page.url }}" }
]
{% else %}
"name": "{{ title }}{% if 'moonweb' not in title and 'stefankoelle' not in title %} · moonweb.org{% endif %}",
"name": "{{ title | safe }}{% if 'moonweb' not in title and 'stefankoelle' not in title %} · moonweb.org{% endif %}",
"url": "{{ site.url }}",
"author": { "@type": "Person", "name": "Stefan Koelle" }
{% endif %}