Skip to content

Commit d030731

Browse files
committed
Use cover image as favicon
1 parent d1f1568 commit d030731

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/listing.gohtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<head>
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>{{ .CurrentDirectory.Name }}</title>
7+
{{ if .Cover }}
8+
<link rel="icon" href="/stream/{{ .Cover.Path }}">
9+
{{ else }}
710
<link rel="icon" href="data:,">
11+
{{ end }}
812
{{/* SVG icons used in the stylesheet https://github.com/ionic-team/ionicons */}}
913
<link rel="stylesheet" href="/static/{{ .StaticVersion }}/style.css">
1014
<script src="/static/{{ .StaticVersion }}/player.js"></script>

0 commit comments

Comments
 (0)