aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.yml18
-rw-r--r--layouts/index.json4
-rw-r--r--layouts/partials/index/components.html4
-rw-r--r--layouts/partials/js.html2
-rw-r--r--layouts/partials/meta.html10
5 files changed, 29 insertions, 9 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index 3e474b1..b384501 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -183,7 +183,7 @@ params:
# most of the interface to ensure
# a good user experience.
#
- # Default: false
+ # Default: `false`
# BOOLEAN; `true`, `false`
disableDarkMode: false
@@ -261,9 +261,23 @@ params:
# and use the status indication
# colors that were just defined?
#
- # Default: true
+ # Default: `true`
# BOOLEAN; `true`, `false`
alwaysKeepBrandColor: true
+
+ # Introduced in v4.0.1 for consistent
+ # site title text color.
+ #
+ # If you do not use the logo, what color
+ # should the site text color be?
+ #
+ # Removing this option will not force
+ # any site text color. This is likely
+ # unwanted behavior.
+ #
+ # Default: `white`
+ # STRING; `white`, `black`, or nothing
+ headerTextColor: white
# Google Analytics tracking code
#
diff --git a/layouts/index.json b/layouts/index.json
index 3a2c299..ce40383 100644
--- a/layouts/index.json
+++ b/layouts/index.json
@@ -5,7 +5,7 @@
{{ $isDown := where $active "Params.severity" "=" "down" }}
{
"is": "index",
- "cStateVersion": "4.0.0",
+ "cStateVersion": "4.0.1",
"apiVersion": "1.0.0",
"title": "{{ .Site.Title }}",
"languageCodeHTML": "{{ .Site.LanguageCode }}",
@@ -56,4 +56,4 @@
"alwaysKeepBrandColor": "{{ .Site.Params.alwaysKeepBrandColor }}",
"googleAnalytics": "{{ .Site.Params.googleAnalytics }}"
-} \ No newline at end of file
+}
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;