fix: add Thumbnail field and video result template

MainResult: add Thumbnail field (used by YouTube, images, etc.)
video_item.html: new partial for video results with thumbnail display
views.go: add templateForResult func + video_item.html to template parse
results_inner.html: dispatch to video_item when Template="videos"
kafka.css: add .video-result flex layout with thumbnail styling
This commit is contained in:
Franz Kafka 2026-03-22 02:06:41 +00:00
parent af23a63a73
commit 4a6559be62
5 changed files with 79 additions and 23 deletions

View file

@ -52,7 +52,7 @@
<div id="urls" role="main">
{{if .Results}}
{{range .Results}}
{{template "result_item" .}}
{{template (templateForResult .Template) .}}
{{end}}
{{else if not .Answers}}
<div class="no_results">