From 1fbc368d5180bea69ac9fe7ff64c27583190ab35 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas <11616378+mistermantas@users.noreply.github.com> Date: Sat, 21 Dec 2019 21:49:36 +0200 Subject: Add badges - thank you @cbergmann - #91 --- layouts/index.svg | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 layouts/index.svg diff --git a/layouts/index.svg b/layouts/index.svg new file mode 100644 index 0000000..4b235e0 --- /dev/null +++ b/layouts/index.svg @@ -0,0 +1,44 @@ +{{ $incidents := where .Site.RegularPages "Params.section" "issue" -}} +{{ $active := where $incidents "Params.resolved" "=" false -}} +{{ $isNotice := where $active "Params.severity" "=" "notice" -}} +{{ $isDisrupted := where $active "Params.severity" "=" "disrupted" -}} +{{ $isDown := where $active "Params.severity" "=" "down" -}} +{{ $shield_prefix := .Site.Title -}} +{{ $status_text := T "thisIsOk" -}} +{{ $status_color := .Site.Params.ok -}} +{{ if $isDown -}} + {{ $status_text = T "thisIsDown" -}} + {{ $status_color = .Site.Params.down -}} +{{ else if $isDisrupted -}} + {{ $status_text = T "thisIsDisrupted" -}} + {{ $status_color = .Site.Params.disrupted -}} +{{ else if $isNotice -}} + {{ $status_text = T "thisIsNotice" -}} + {{ $status_color = .Site.Params.notice -}} +{{ end -}} +{{ $text_padding := 1 -}} +{{ $left_text_lenght := $shield_prefix | strings.RuneCount -}} +{{ $right_text_length := $status_text | strings.RuneCount -}} +{{ $left_text_padding := $text_padding -}} +{{ $right_box_padding := add (mul $text_padding 2) $left_text_lenght -}} +{{ $right_text_padding := add $right_box_padding $text_padding -}} +{{ $total_width := add (mul $text_padding 4) (add $left_text_lenght $right_text_length) -}} + + + + + + + + + + + + + + {{ $shield_prefix }} + {{ $shield_prefix }} + {{ $status_text }} + {{ $status_text }} + + -- cgit v1.2.3-70-g09d2 From 19e27a5add7c8627bb291dd97d9785439d9504c1 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas <11616378+mistermantas@users.noreply.github.com> Date: Fri, 3 Jan 2020 18:29:16 +0200 Subject: Add v4.0.1 bug fix to NCMS --- static/admin/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/admin/config.yml b/static/admin/config.yml index ffff761..98a6059 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -147,6 +147,15 @@ collections: widget: 'string' hint: 'Default: 15:04 — Jan 2. Hugo formatting docs: https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference' default: '15:04 — Jan 2' + # Design site title color toggle in v4.0.1 + - label: 'Site title text color' + hint: 'This is irrelevant, if you use a logo in your header. Docs: https://github.com/cstate/cstate/wiki/Customization#site-title-text-color-v401' + name: 'headerTextColor' + widget: 'select' + default: 'white' + options: + - { label: "Black", value: "black" } + - { label: "White", value: "white" } # Design toggles - label: 'Use large header design' name: 'useLargeHeaderDesign' -- cgit v1.2.3-70-g09d2 From d61f3c50ea256f5ad4dd7b231982dd9189145b81 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas <11616378+mistermantas@users.noreply.github.com> Date: Wed, 12 Feb 2020 18:41:00 +0200 Subject: add tmw --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 442732b..0b8517a 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Some more examples from the internet: * [Chocolatey](https://status.chocolatey.org/) +* [tmw.media](https://status.tmw.media) * [Proventa](https://status.proventa.io/) (German) * [sr.ht](https://status.sr.ht/) * [Content Ignite](https://status.contentignite.com/) -- cgit v1.2.3-70-g09d2 From ed5732629e142492b78888f6007de2fda618991c Mon Sep 17 00:00:00 2001 From: Kevin Fox Date: Thu, 27 Feb 2020 10:33:27 -0800 Subject: Allow server display name to be overridden. --- layouts/partials/index/components.html | 4 ++-- 1 file changed, 2 insertions(+), 2 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 @@
- {{ .name }} + {{ default .displayName .name }} {{ with .description }} @@ -98,4 +98,4 @@
{{ end }} - \ No newline at end of file + -- cgit v1.2.3-70-g09d2 From 0619be313c7266fe3433ccb34e0ccb38e7fa106c Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas <11616378+mistermantas@users.noreply.github.com> Date: Fri, 28 Feb 2020 20:54:32 +0200 Subject: change ver --- layouts/partials/js.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 19e4a05..85f65f5 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -3,7 +3,7 @@ * Dev toolset */ - console.log('cState v4.0.1 - https://github.com/cstate/cstate'); + console.log('cState v4.1.0 - https://github.com/cstate/cstate'); document.getElementsByTagName('html')[0].className = 'js'; /** -- cgit v1.2.3-70-g09d2 From daa9ec64690ada53c9529665d1532050f3e1ac6a Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas <11616378+mistermantas@users.noreply.github.com> Date: Fri, 28 Feb 2020 20:55:10 +0200 Subject: change ver --- layouts/partials/meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 6311441..9abb784 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -12,7 +12,7 @@ {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - +