diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/index/announcements.html | 30 | ||||
-rw-r--r-- | layouts/partials/index/components.html | 4 | ||||
-rw-r--r-- | layouts/partials/js.html | 2 | ||||
-rw-r--r-- | layouts/partials/meta.html | 2 |
4 files changed, 31 insertions, 7 deletions
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html index 25a1719..e33c262 100644 --- a/layouts/partials/index/announcements.html +++ b/layouts/partials/index/announcements.html @@ -1,9 +1,32 @@ {{ $incidents := where .Site.RegularPages "Params.section" "issue" }} {{ $active := where $incidents "Params.resolved" "=" false }} +{{ $activeIncidents := where $incidents "Params.informational" "=" false }} +{{ $pinned := where $incidents "Params.pin" "=" true }} -{{ if $active }} +{{ if or ($activeIncidents) ($pinned) }} <div class="announcement-box" style="border-bottom: 0"> - {{ range $active }} + {{ range $activeIncidents }} + <div class="padding"> + <p> + <a href="{{ .RelPermalink }}"><strong class="bold">{{ .Title }} →</strong></a> + </p> + + <p><small> + {{ range .Params.Affected }} + + <a href="{{ printf "/affected/%s/" (. | urlize) | relURL }}" class="tag no-underline">{{ . }}</a> + + {{ end }} + </small></p> + + {{ .Content | safeHTML | truncate 500 "…" }} <a href="{{ .RelPermalink }}"><b>→</b></a> + <p></p> + </div> + <hr class="clean announcement-box"> + {{ end }} + + {{ range $pinned }} + {{ if .Params.informational }} <div class="padding"> <p> <a href="{{ .RelPermalink }}"><strong class="bold">{{ .Title }} →</strong></a> @@ -21,6 +44,7 @@ <p></p> </div> <hr class="clean announcement-box"> + {{ end }} {{ end }} </div> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html index acb1aa7..d3d67bd 100644 --- a/layouts/partials/index/components.html +++ b/layouts/partials/index/components.html @@ -16,7 +16,7 @@ <div class="bold padding clicky category__head" onclick="toggleCategoryHead(this)"> <span class="hide-without-js"> <span class="category__closed-marker">►</span> - <span class="category__open-marker">✕</span> + <span class="category__open-marker">▲</span> </span> <b> @@ -136,4 +136,4 @@ </div> {{ end }} -</div>
\ No newline at end of file +</div> diff --git a/layouts/partials/js.html b/layouts/partials/js.html index e11de17..88948df 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -3,7 +3,7 @@ * Dev toolset */ - console.log('cState v5.1 - https://github.com/cstate/cstate'); + console.log('cState v5.2 - https://github.com/cstate/cstate'); document.getElementsByTagName('html')[0].className = 'js'; /** diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 4e7d06e..0e8725b 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 v5.1 - https://github.com/cstate/cstate"> + <meta name="generator" content="cState v5.2 - https://github.com/cstate/cstate"> <meta name="theme-color" content="{{ .Site.Params.brand }}"> <script> var themeBrandColor = '{{ .Site.Params.brand }}'; |