mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
Fix JSON-LD: use 'safe' filter to prevent HTML escaping of & in title
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user