From 013feeb679e1f8bbad1693277a5a5b0ec46e151c Mon Sep 17 00:00:00 2001 From: Chris Novakovic Date: Mon, 27 Feb 2023 20:21:22 +0000 Subject: [PATCH] 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. --- templates/views/video.latte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/views/video.latte b/templates/views/video.latte index 0c6aa53..5ce87ec 100644 --- a/templates/views/video.latte +++ b/templates/views/video.latte @@ -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}