fix youtube embedd

This commit is contained in:
2026-07-17 14:12:16 +03:00
parent d48835a270
commit f5df752429
+13
View File
@@ -7,3 +7,16 @@
allowfullscreen>
</iframe>
</div>
<!-- SEO: VideoObject JSON-LD (confirms this page hosts the embedded video) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": {{ title | default(value=page.title) | json_encode | safe }},
"description": {{ page.description | default(value=config.description) | json_encode | safe }},
"thumbnailUrl": "https://i.ytimg.com/vi/{{ id | safe }}/sddefault.jpg"
{% if page.date %},"uploadDate": "{{ page.date | date(format="%+") }}"{% endif %},
"embedUrl": "https://www.youtube-nocookie.com/embed/{{ id | safe }}",
"contentUrl": "https://www.youtube.com/watch?v={{ id | safe }}"
}
</script>