Set page title to video description in video view

If the upstream video has a description set, use it as the page title in
place of "Video" in the video view. This helps to disambiguate video
pages in the browser history.
This commit is contained in:
Chris Novakovic 2023-02-27 20:21:22 +00:00
parent bf86e0d36a
commit 013feeb679

View file

@ -4,6 +4,10 @@
{var $og_content = $item->video->originCover}
{var $og_url = url_video_internal($info->detail->uniqueId, $item->id)}
{if !empty($item->desc)}
{var $title = trim($item->desc)}
{/if}
{block content}
<div class="columns is-centered is-vcentered is-gapless">
<div class="column has-text-centered">