aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorMantas Vilčinskas <11616378+mistermantas@users.noreply.github.com>2020-02-28 20:48:24 +0200
committerGitHub <noreply@github.com>2020-02-28 20:48:24 +0200
commit1f95dbd24d4f1cb0c97c94714b30269f8bee3b5b (patch)
treed5c67815b63dee4487bd951dd6db3bf625ff5194 /layouts/partials
parentd61f3c50ea256f5ad4dd7b231982dd9189145b81 (diff)
parented5732629e142492b78888f6007de2fda618991c (diff)
Merge pull request #99 from kfox1111/nameoverride
Allow server display name to be overridden.
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/index/components.html4
-rw-r--r--layouts/partials/js.html2
-rw-r--r--layouts/partials/meta.html10
3 files changed, 11 insertions, 5 deletions
diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html
index 135349a..da66ee1 100644
--- a/layouts/partials/index/components.html
+++ b/layouts/partials/index/components.html
@@ -60,7 +60,7 @@
<div class="component" data-status="{{ if $thisIsDown }}down{{ else }}{{ if $thisIsDisrupted }}disrupted{{ else }}{{ if $thisIsNotice }}notice{{ else }}ok{{ end }}{{ end }}{{ end }}">
<a href="/affected/{{ .name | urlize }}" class="no-underline">
- {{ .name }}
+ {{ default .displayName .name }}
</a>
{{ with .description }}
@@ -98,4 +98,4 @@
</div>
{{ end }}
-</div> \ No newline at end of file
+</div>
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index ffdced4..19e4a05 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -3,7 +3,7 @@
* Dev toolset
*/
- console.log('cState v4.0.0 - https://github.com/cstate/cstate');
+ console.log('cState v4.0.1 - https://github.com/cstate/cstate');
document.getElementsByTagName('html')[0].className = 'js';
/**
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 9389c54..6311441 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -12,7 +12,7 @@
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
- <meta name="generator" content="cState v4.0.0 - https://github.com/cstate/cstate">
+ <meta name="generator" content="cState v4.0.1 - https://github.com/cstate/cstate">
<meta name="theme-color" content="{{ .Site.Params.brand }}">
<script>
var themeBrandColor = '{{ .Site.Params.brand }}';
@@ -165,7 +165,13 @@
font-size: 14px;
font-variant: small-caps;
}
-
+
+ {{ if eq .Params.headerTextColor "black" }}
+ .header a h1 { color: #000; }
+ {{ else if eq .Params.headerTextColor "white" }}
+ .header a h1 { color: #fff; }
+ {{ end }}
+
.header__logo img {
height: auto;
width: 320px;