diff options
| author | Julian Hurst <julian.hurst92@gmail.com> | 2020-10-14 20:36:53 +0200 |
|---|---|---|
| committer | Julian Hurst <julian.hurst92@gmail.com> | 2020-10-14 20:36:53 +0200 |
| commit | e670f9d19f658055e169b6d7c3ae57ddc11c3eee (patch) | |
| tree | 01fa0c8c89d3a847a5ce2e629a5ee7fa8c5264b8 /templates | |
| parent | 8891eea532102b58a23a71a491be2c3f151720b5 (diff) | |
| download | grimtube-e670f9d19f658055e169b6d7c3ae57ddc11c3eee.tar.gz | |
Add embed and halloween theme
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/embed.html | 4 | ||||
| -rw-r--r-- | templates/search.html | 5 |
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> |
