Custom CSS support, fix #10
This commit is contained in:
parent
064e35935d
commit
2ee2ed78a9
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ import (
|
|||
// Options holds web package configuration
|
||||
type Options struct {
|
||||
Enabled bool
|
||||
CustomCSS string
|
||||
Favicon string
|
||||
Hostname string
|
||||
ListenAddress string
|
||||
|
|
Loading…
Reference in New Issue