aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2023-12-01 16:06:56 +0200
committerGitHub <noreply@github.com>2023-12-01 16:06:56 +0200
commit627b76ac2f904edadc69ee0e7b8776078bb73fc0 (patch)
tree7cfd3170dee0ba90ee32caf3e7f9412cb439e292 /layouts/partials
parented2321eb20b63f8e24af4aaf0df344e5b78de8f4 (diff)
parent1674bfc8509def65ea62e215450d009516f183e5 (diff)
cState v5.6.0 #300
cState v5.6.0
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/index/announcements.html4
-rw-r--r--layouts/partials/js.html4
-rw-r--r--layouts/partials/meta.html2
3 files changed, 6 insertions, 4 deletions
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html
index 2bb7f08..389d673 100644
--- a/layouts/partials/index/announcements.html
+++ b/layouts/partials/index/announcements.html
@@ -1,5 +1,7 @@
{{ $allPosts := where .Site.RegularPages "Params.section" "issue" }}
-{{ $active := where $allPosts "Params.resolved" "=" false }}
+{{ $allActive := where $allPosts "Params.resolved" "=" false }}
+{{ $active := where $allActive "Params.pin" "!=" false }}
+{{/* this $active checks if pin is explicitely set to false */}}
{{ $informationals := where $allPosts "Params.informational" "=" true }}
{{ $pinned := where $informationals "Params.pin" "=" true }}
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index a5b974e..b7dad07 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -3,7 +3,7 @@
* Dev toolset
*/
- console.log('cState v5.5.2 - https://github.com/cstate/cstate');
+ console.log('cState v5.6 - https://github.com/cstate/cstate');
document.getElementsByTagName('html')[0].className = 'js';
/**
@@ -103,7 +103,7 @@
var elements = document.querySelectorAll('.relative-time');
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
- var time = Date.parse(element.getAttribute('title'));
+ var time = Date.parse(element.dataset.date);
var html = element.getAttribute('data-time-prefix') || '';
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index da0ed46..eec0772 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.5.2 - https://github.com/cstate/cstate">
+ <meta name="generator" content="cState v5.6 - https://github.com/cstate/cstate">
<meta name="theme-color" content="{{ .Site.Params.brand }}">
<script>
var themeBrandColor = '{{ .Site.Params.brand }}';