Hide youtube player if no video is given

This commit is contained in:
pietervdvn 2021-06-04 17:07:26 +02:00
parent 805a773357
commit e11c020ed4

View file

@ -257,7 +257,9 @@
"condition": "_part_of_walking_routes~*"
},
{
"condition": "_video:id~*",
"freeform": {
"key": "_video:id"
},
"render": "<iframe style='width: 100%; height: 300px' src=\"https://www.youtube-nocookie.com/embed/{_video:id}\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"
}
],