summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/embed.html4
-rw-r--r--templates/search.html5
2 files changed, 7 insertions, 2 deletions
diff --git a/templates/embed.html b/templates/embed.html
new file mode 100644
index 0000000..ff372ab
--- /dev/null
+++ b/templates/embed.html
@@ -0,0 +1,4 @@
+{{define "title"}}Index{{end}}
+{{define "content"}}
+ <iframe width="100%" height="100%" src="https://www.youtube-nocookie.com/embed/{{.}}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
+{{end}}
diff --git a/templates/search.html b/templates/search.html
index b921eb6..5ab6f7e 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -7,10 +7,11 @@
{{range .Items}}
<tr>
<td>
- <a href="{{.Url}}"><img width=120 src="{{.Thumb}}"></a>
+ <a href="/embed?id={{.Id}}"><img width=120 src="{{.Thumb}}"></a>
</td>
<td>
- <a href="{{.Url}}"><span>{{.Title}}</span></a>
+ <a href="/embed?id={{.Id}}"><span>{{.Title}}</span></a><br/>
+ <a href="{{.Url}}"><span class="comments">Comments</span></a>
</td>
<td>
<a href="{{.ChannelUrl}}"><span>{{.ChannelTitle}}</span></a>