mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-18 09:22:53 +00:00
fix youtube embedd
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user