Skip to content

Commit

Permalink
Merge pull request #1035 from gethinode/develop
Browse files Browse the repository at this point in the history
Fix table parameter initialization
  • Loading branch information
markdumay authored Jul 13, 2024
2 parents 88dfc50 + b017a0a commit bb448f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions layouts/shortcodes/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit bb448f3

Please sign in to comment.