mirror of
				https://gitlab.crans.org/nounous/ghostream.git
				synced 2025-11-04 15:42:26 +01:00 
			
		
		
		
	Custom CSS support, fix #10
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user