aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
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 }}';