aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/js.html
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2021-03-06 16:01:11 +0200
committerMantas Vilčinskas <hi@mnts.lt>2021-03-06 16:01:11 +0200
commitd64bfe770d5ccb46c6ca7fb07c90a1ce03b40f13 (patch)
tree275d3f196669282b3d6f7ce172f23385db8ea26f /layouts/partials/js.html
parent9bbc616c7328ff0fd205b0bbb6f8b0ba2855fb6f (diff)
fix #101 - add category status, #161 ref in config.yml
Diffstat (limited to 'layouts/partials/js.html')
-rw-r--r--layouts/partials/js.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index d966643..765e787 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -40,6 +40,18 @@
document.location.pathname = '/admin';
}
+ /**
+ * Category logic
+ */
+
+ function toggleCategoryHead(el) {
+ if (el.parentNode.className == 'category category--open category--titled') {
+ el.parentNode.className = 'category category--closed category--titled';
+ } else {
+ el.parentNode.className = 'category category--open category--titled';
+ }
+ }
+
/**
* Returns a relative date string for the given date.
*/