From 00d141a4dadb9d547eb14dbcd3627421f5ca82fd Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 13 Jul 2024 08:00:11 +0200 Subject: [PATCH] Fix table parameter initialization --- layouts/shortcodes/table.html | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index 2bda80f84..8d880174e 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -22,9 +22,9 @@ {{- if .IsNamedParams -}} {{ $breakpoint = .Get "breakpoint" }} {{ $class = .Get "class" | default "" }} - {{ $sortable = partial "utilities/CastBool.html" (.Get "sortable") | default false }} - {{ $paging = partial "utilities/CastBool.html" (.Get "paging") | default false }} - {{ $searchable = partial "utilities/CastBool.html" (.Get "searchable") | default false }} + {{ with (.Get "sortable")}} {{ $sortable = partial "utilities/CastBool.html" . }}{{ end }} + {{ with (.Get "paging")}} {{ $paging = partial "utilities/CastBool.html" . }}{{ end }} + {{ with (.Get "searchable")}} {{ $searchable = partial "utilities/CastBool.html" . }}{{ end }} {{ else }} {{ $breakpoint = .Get 0 }} {{ end }} diff --git a/package-lock.json b/package-lock.json index 7aae16673..ec2d3db82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gethinode/hinode", - "version": "0.24.13", + "version": "0.24.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gethinode/hinode", - "version": "0.24.13", + "version": "0.24.14", "license": "MIT", "dependencies": { "@fullhuman/postcss-purgecss": "^6.0.0", diff --git a/package.json b/package.json index 72a84f48f..867951b33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gethinode/hinode", - "version": "0.24.13", + "version": "0.24.14", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "keywords": [ "hugo",