Skip to content

Commit

Permalink
videos: simplify the video microformat tags
Browse files Browse the repository at this point in the history
Use the existing HTML elements instead of creating separate <meta> ones
for contentUrl and thumbnailUrl.
  • Loading branch information
dfandrich committed Feb 10, 2025
1 parent f824094 commit 1c6e156
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/videos/mkvideos.pl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ sub onevideo {
}
return "<!-- $date -->".
"<div itemprop=\"video\" itemscope itemtype=\"http://schema.org/VideoObject\"><div class=\"video\">\n".
"<meta itemprop=\"contentUrl\" content=\"$url\" /><a href=\"$url\"> <img alt=\"Thumbnail image of $video\" src=\"t/$thumb\" $size> </a>\n".
"<meta itemprop=\"thumbnailUrl\" content=\"https://curl.se/docs/videos/t/$thumb\" /><br>\n".
"<a itemprop=\"contentUrl\" href=\"$url\"> <img itemprop=\"thumbnailUrl\" alt=\"Thumbnail image of $video\" src=\"t/$thumb\" $size> </a><br>\n".
"<b><span itemprop=\"name\">$video</span></b> <p> <meta itemprop=\"duration\" content=\"$isoduration\" />$duration, <span itemprop=\"dateCreated uploadDate\">$date</span>$slides <p>\n".
"<span itemprop=\"description\">$desc by <span itemprop=\"actor\">$who</span>$event</span>$keywords</div>".
"</div>";
Expand Down

0 comments on commit 1c6e156

Please sign in to comment.