mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 18:14:28 +00:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4c37191c81 | ||
![]() |
8197aa89cd | ||
![]() |
a00bab683f | ||
![]() |
29adfc629d | ||
![]() |
bf829f6abe | ||
![]() |
f00a38cd4b | ||
![]() |
510cb7f941 | ||
![]() |
ad84ccb4b8 | ||
![]() |
81b8dc4ea7 | ||
![]() |
4881528343 | ||
![]() |
c3f4b6d8ea | ||
![]() |
d853106bf3 | ||
![]() |
0c77f9c5a0 | ||
![]() |
8cdad9c783 |
1
.github/codeql/codeql-config.yml
vendored
1
.github/codeql/codeql-config.yml
vendored
@@ -4,5 +4,6 @@ paths-ignore:
|
|||||||
- '**/vendor'
|
- '**/vendor'
|
||||||
- '**/critical/languageSelector.js'
|
- '**/critical/languageSelector.js'
|
||||||
- '**/critical/color.js'
|
- '**/critical/color.js'
|
||||||
|
- '**/clipboard.js'
|
||||||
- '**/navbar.js'
|
- '**/navbar.js'
|
||||||
- '**/sharing.js'
|
- '**/sharing.js'
|
||||||
|
@@ -44,6 +44,7 @@ blueprint:
|
|||||||
bento:
|
bento:
|
||||||
cover:
|
cover:
|
||||||
header-style:
|
header-style:
|
||||||
|
body-style:
|
||||||
footer-style:
|
footer-style:
|
||||||
orientation:
|
orientation:
|
||||||
class:
|
class:
|
||||||
|
@@ -82,15 +82,11 @@
|
|||||||
{{- $params = merge $params (dict
|
{{- $params = merge $params (dict
|
||||||
"page" page
|
"page" page
|
||||||
"list" $pages
|
"list" $pages
|
||||||
"limit" $args.limit
|
|
||||||
"cols" $args.cols
|
"cols" $args.cols
|
||||||
"icon-rounded" $args.iconRounded
|
"limit" $args.limit
|
||||||
"icon-style" $args.iconStyle
|
"padding" $args.padding
|
||||||
"href" (cond $moreButton $moreLink "")
|
"href" (cond $moreButton $moreLink "")
|
||||||
"href-title" (cond $moreButton $moreTitle "")
|
|
||||||
"href-force" (gt $result.total (len $result.pages))
|
"href-force" (gt $result.total (len $result.pages))
|
||||||
"more-link-type" $moreType
|
|
||||||
"more-link-icon" $moreIcon
|
|
||||||
)}}
|
)}}
|
||||||
|
|
||||||
{{ if $args.scroll }}
|
{{ if $args.scroll }}
|
||||||
@@ -100,7 +96,6 @@
|
|||||||
"body-style" "title"
|
"body-style" "title"
|
||||||
"footer-style" "none"
|
"footer-style" "none"
|
||||||
"gutter" 1
|
"gutter" 1
|
||||||
"padding" 3
|
|
||||||
"ratio" "1x1"
|
"ratio" "1x1"
|
||||||
"orientation" "horizontal-sm"
|
"orientation" "horizontal-sm"
|
||||||
"styles" (cond $args.bento $styles "")
|
"styles" (cond $args.bento $styles "")
|
||||||
@@ -108,12 +103,17 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $params = merge $params (dict
|
{{ $params = merge $params (dict
|
||||||
"header-style" $args.headerStyle
|
"header-style" $args.headerStyle
|
||||||
|
"body-style" $args.bodyStyle
|
||||||
"footer-style" $args.footerStyle
|
"footer-style" $args.footerStyle
|
||||||
"padding" $args.padding
|
|
||||||
"class" (or $args.class "border-0")
|
"class" (or $args.class "border-0")
|
||||||
"align" "start"
|
"align" "start"
|
||||||
"orientation" $args.orientation
|
"orientation" $args.orientation
|
||||||
|
"href-title" (cond $moreButton $moreTitle "")
|
||||||
|
"icon-rounded" $args.iconRounded
|
||||||
|
"icon-style" $args.iconStyle
|
||||||
"hook" "assets/live-card.html"
|
"hook" "assets/live-card.html"
|
||||||
|
"more-link-type" $moreType
|
||||||
|
"more-link-icon" $moreIcon
|
||||||
"pagination" $args.pagination
|
"pagination" $args.pagination
|
||||||
"paginate" $paginate
|
"paginate" $paginate
|
||||||
) -}}
|
) -}}
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
"page" page
|
"page" page
|
||||||
"heading" (dict "content" $element.content "width" 8)
|
"heading" (dict "content" $element.content "width" 8)
|
||||||
"background" $args.background
|
"background" $args.background
|
||||||
"illustration" (dict "ratio" $args.ratio "icon" $element.icon "image" $element.image "mode" $element.mode)
|
"illustration" (dict "ratio" $args.ratio "icon" $element.icon "image" $element.image "mode" $element.mode "justify" "end")
|
||||||
"order" $args.order
|
"order" $args.order
|
||||||
"link-type" $args.linkType
|
"link-type" $args.linkType
|
||||||
"links" $args.links
|
"links" $args.links
|
||||||
|
@@ -29,13 +29,16 @@ arguments:
|
|||||||
optional: true
|
optional: true
|
||||||
comment: Array of pages or structured content to be rendered as cards.
|
comment: Array of pages or structured content to be rendered as cards.
|
||||||
group: partial
|
group: partial
|
||||||
|
limit:
|
||||||
max:
|
max:
|
||||||
type: int
|
type: int
|
||||||
optional: true
|
optional: true
|
||||||
comment: Maximum number of cards to display.
|
comment: Maximum number of elements to display.
|
||||||
group: partial
|
group: partial
|
||||||
options:
|
options:
|
||||||
min: 1
|
min: 1
|
||||||
|
deprecated: v1.16.2
|
||||||
|
alternative: limit
|
||||||
cols:
|
cols:
|
||||||
type: select
|
type: select
|
||||||
optional: true
|
optional: true
|
||||||
@@ -57,6 +60,9 @@ arguments:
|
|||||||
Address for the button or hyperlink. If set, a button is added if the
|
Address for the button or hyperlink. If set, a button is added if the
|
||||||
list exceeds the maximum number of cards to display.
|
list exceeds the maximum number of cards to display.
|
||||||
group: partial
|
group: partial
|
||||||
|
href-force:
|
||||||
|
release: v1.16.2
|
||||||
|
group: partial
|
||||||
hrefTitle:
|
hrefTitle:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
@@ -87,4 +93,5 @@ arguments:
|
|||||||
comment: >-
|
comment: >-
|
||||||
Styles to apply to the individual cards. Supported elements are `ratio`,
|
Styles to apply to the individual cards. Supported elements are `ratio`,
|
||||||
`orientation`, `portrait`, and `width`.
|
`orientation`, `portrait`, and `width`.
|
||||||
|
padding:
|
||||||
|
release: v1.16.2
|
||||||
|
2
go.mod
2
go.mod
@@ -15,7 +15,7 @@ require (
|
|||||||
github.com/gethinode/mod-lottie v1.6.1 // indirect
|
github.com/gethinode/mod-lottie v1.6.1 // indirect
|
||||||
github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
|
github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
|
||||||
github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect
|
github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect
|
||||||
github.com/gethinode/mod-utils/v4 v4.17.0 // indirect
|
github.com/gethinode/mod-utils/v4 v4.18.0 // indirect
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect
|
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect
|
||||||
github.com/twbs/bootstrap v5.3.8+incompatible // indirect
|
github.com/twbs/bootstrap v5.3.8+incompatible // indirect
|
||||||
)
|
)
|
||||||
|
2
go.sum
2
go.sum
@@ -518,6 +518,8 @@ github.com/gethinode/mod-utils/v4 v4.16.1 h1:HjV6TONU7ZbXC2xZIPRupjKOUORddtQH8bb
|
|||||||
github.com/gethinode/mod-utils/v4 v4.16.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
github.com/gethinode/mod-utils/v4 v4.16.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
github.com/gethinode/mod-utils/v4 v4.17.0 h1:nDyXpZ0mCtf3ZML8G6bjeYJsI7Ne/Ze8rEWEa9zh6CI=
|
github.com/gethinode/mod-utils/v4 v4.17.0 h1:nDyXpZ0mCtf3ZML8G6bjeYJsI7Ne/Ze8rEWEa9zh6CI=
|
||||||
github.com/gethinode/mod-utils/v4 v4.17.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
github.com/gethinode/mod-utils/v4 v4.17.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.18.0 h1:CLxuPCbsQBGVgAM1x5nmh6V0HJoOcltIfKG9sthpsTk=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.18.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
||||||
|
@@ -180,8 +180,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if eq $args.orientation "none" }}{{ $thumbnail = "" }}{{ $icon = "" }}{{ end -}}
|
{{- if eq $args.orientation "none" }}{{ $thumbnail = "" }}{{ $icon = "" }}{{ end -}}
|
||||||
{{- if eq $args.body "title" }}{{ $description = "" }}{{ end -}}
|
{{- if or (eq $args.bodyStyle "title") (eq $args.body "title") }}{{ $description = "" }}{{ end -}}
|
||||||
{{- if eq $args.body "none" }}{{ $title = "" }}{{ $description = "" }}{{ end -}}
|
{{- if or (eq $args.bodyStyle "none") (eq $args.body "none") }}{{ $title = "" }}{{ $description = "" }}{{ end -}}
|
||||||
{{ if site.Params.main.titleCase }}{{ $title = title $title }}{{ end }}
|
{{ if site.Params.main.titleCase }}{{ $title = title $title }}{{ end }}
|
||||||
|
|
||||||
{{- $thumbnailArgs := dict
|
{{- $thumbnailArgs := dict
|
||||||
|
@@ -75,6 +75,7 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $imageJustify = $align }}
|
{{ $imageJustify = $align }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with $args.illustration.justify }}{{ $imageJustify = . }}{{ end }}
|
||||||
|
|
||||||
{{ if $args.icon }}{{ $imageWrapper = $iconWrapper }}{{ end }}
|
{{ if $args.icon }}{{ $imageWrapper = $iconWrapper }}{{ end }}
|
||||||
|
|
||||||
|
@@ -99,5 +99,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-{{ $breakpoint.current }}-none pt-{{ $padding.y }}">
|
<div class="d-{{ $breakpoint.current }}-none pt-{{ $padding.y }}">
|
||||||
{{ partial "links-content.html" (dict "links" $args.links "justify" $args.justify "type" $args.linkType "li" true) }}
|
{{ partial "links-content.html" (dict "links" $args.links "justify" $args.justify "type" $args.linkType "li" false) }}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -24,12 +24,13 @@
|
|||||||
{{ $params := dict
|
{{ $params := dict
|
||||||
"page" $args.page
|
"page" $args.page
|
||||||
"list" $args.list
|
"list" $args.list
|
||||||
"max" $args.max
|
"limit" (or $args.limit $args.max)
|
||||||
"class" "border-0 card-zoom"
|
"class" "border-0 card-zoom"
|
||||||
"header-style" "none"
|
"header-style" "none"
|
||||||
"body-style" "title"
|
"body-style" "title"
|
||||||
"footer-style" "none"
|
"footer-style" "none"
|
||||||
"href" $args.href
|
"href" $args.href
|
||||||
|
"href-force" $args.hrefForce
|
||||||
"href-title" $args.hrefTitle
|
"href-title" $args.hrefTitle
|
||||||
"link-type" (or $args.linkType $args.buttonType)
|
"link-type" (or $args.linkType $args.buttonType)
|
||||||
}}
|
}}
|
||||||
@@ -38,12 +39,12 @@
|
|||||||
(dict
|
(dict
|
||||||
"cols" $args.cols
|
"cols" $args.cols
|
||||||
"gutter" $args.gutter
|
"gutter" $args.gutter
|
||||||
"padding" 3
|
"padding" $args.padding
|
||||||
"orientation" "stacked"
|
"orientation" "stacked"
|
||||||
"scroll" true
|
"scroll" true
|
||||||
"bento" true
|
"bento" true
|
||||||
"spacer" $args.animated
|
"spacer" $args.animated
|
||||||
"portrait" true
|
"portrait" false
|
||||||
"valign" (cond $args.animated "" "end")
|
"valign" (cond $args.animated "" "end")
|
||||||
"styles" $args.styles
|
"styles" $args.styles
|
||||||
"wrapper" "card-stack p-0 my-3 d-none d-md-block"
|
"wrapper" "card-stack p-0 my-3 d-none d-md-block"
|
||||||
|
Reference in New Issue
Block a user