diff --git a/conf/zone.go b/conf/zone.go index 381d759..ace87ea 100644 --- a/conf/zone.go +++ b/conf/zone.go @@ -5,6 +5,7 @@ import "golang.captainalm.com/GOPackageHeaderServer/outputMeta" type ZoneYaml struct { Name string `yaml:"name"` Domains []string `yaml:"domains"` + CssURL string `yaml:"cssURL"` HavePageContents bool `yaml:"havePageContents"` BasePath string `yaml:"basePath"` UsernameProvided bool `yaml:"usernameProvided"` diff --git a/config.example.yml b/config.example.yml index 917d853..4a2909a 100644 --- a/config.example.yml +++ b/config.example.yml @@ -8,6 +8,7 @@ listen: #HTTP server settings zones: #An array of zones - name: test #The name of the package set domains: ["localhost:8080"] #An array of domains this package set use (Each domain can only be registered with one zone) + cssURL: "http://localhost/sheet.css" #A URL to the CSS file to use for outputted pages (If blank or not provided, no CSS is included) havePageContents: true #Output a header and link to the target repo basePath: "localhost" #The base-path, also known as, package name basePrefixURL: "http://localhost" #The base git URL diff --git a/web/outputpage.html b/web/outputpage.html index 715586a..407ac86 100644 --- a/web/outputpage.html +++ b/web/outputpage.html @@ -1,8 +1,13 @@
+ {{ if .PageHandler.OutputPage }} {{ if isNotEmpty .PageHandler.Name }} -