Custom CSS support, fix #10

This commit is contained in:
Alexandre Iooss 2020-10-11 11:04:40 +02:00
parent 064e35935d
commit 2ee2ed78a9
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,10 @@ web:
#
#enabled: true
# Custom CSS stylesheet to change theme
#
#customCss: ""
# Web page favicon, can be .ico, .png or .svg
#
#favicon: /static/img/favicon.svg

View File

@ -7,6 +7,7 @@
<title>{{if .Path}}{{if not .Cfg.OneStreamPerDomain}}{{.Path}} - {{end}}{{end}}{{.Cfg.Name}}</title>
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/player.css">
{{if .Cfg.CustomCSS}}<link rel="stylesheet" href="{{.Cfg.CustomCSS}}">{{end}}
<link rel="shortcut icon" href="{{.Cfg.Favicon}}">
</head>

View File

@ -17,6 +17,7 @@ import (
// Options holds web package configuration
type Options struct {
Enabled bool
CustomCSS string
Favicon string
Hostname string
ListenAddress string