mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 23:13:11 +00:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
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'
|
||||
- '**/critical/languageSelector.js'
|
||||
- '**/critical/color.js'
|
||||
- '**/clipboard.js'
|
||||
- '**/navbar.js'
|
||||
- '**/sharing.js'
|
||||
|
@@ -44,6 +44,7 @@ blueprint:
|
||||
bento:
|
||||
cover:
|
||||
header-style:
|
||||
body-style:
|
||||
footer-style:
|
||||
orientation:
|
||||
class:
|
||||
|
@@ -82,15 +82,11 @@
|
||||
{{- $params = merge $params (dict
|
||||
"page" page
|
||||
"list" $pages
|
||||
"limit" $args.limit
|
||||
"cols" $args.cols
|
||||
"icon-rounded" $args.iconRounded
|
||||
"icon-style" $args.iconStyle
|
||||
"limit" $args.limit
|
||||
"padding" $args.padding
|
||||
"href" (cond $moreButton $moreLink "")
|
||||
"href-title" (cond $moreButton $moreTitle "")
|
||||
"href-force" (gt $result.total (len $result.pages))
|
||||
"more-link-type" $moreType
|
||||
"more-link-icon" $moreIcon
|
||||
)}}
|
||||
|
||||
{{ if $args.scroll }}
|
||||
@@ -100,22 +96,26 @@
|
||||
"body-style" "title"
|
||||
"footer-style" "none"
|
||||
"gutter" 1
|
||||
"padding" 3
|
||||
"ratio" "1x1"
|
||||
"orientation" "horizontal-sm"
|
||||
"styles" (cond $args.bento $styles "")
|
||||
) -}}
|
||||
{{ else }}
|
||||
{{ $params = merge $params (dict
|
||||
"header-style" $args.headerStyle
|
||||
"footer-style" $args.footerStyle
|
||||
"padding" $args.padding
|
||||
"class" (or $args.class "border-0")
|
||||
"align" "start"
|
||||
"orientation" $args.orientation
|
||||
"hook" "assets/live-card.html"
|
||||
"pagination" $args.pagination
|
||||
"paginate" $paginate
|
||||
"header-style" $args.headerStyle
|
||||
"body-style" $args.bodyStyle
|
||||
"footer-style" $args.footerStyle
|
||||
"class" (or $args.class "border-0")
|
||||
"align" "start"
|
||||
"orientation" $args.orientation
|
||||
"href-title" (cond $moreButton $moreTitle "")
|
||||
"icon-rounded" $args.iconRounded
|
||||
"icon-style" $args.iconStyle
|
||||
"hook" "assets/live-card.html"
|
||||
"more-link-type" $moreType
|
||||
"more-link-icon" $moreIcon
|
||||
"pagination" $args.pagination
|
||||
"paginate" $paginate
|
||||
) -}}
|
||||
{{ end }}
|
||||
{{ if gt (len $pages) 0 }}
|
||||
|
@@ -29,13 +29,16 @@ arguments:
|
||||
optional: true
|
||||
comment: Array of pages or structured content to be rendered as cards.
|
||||
group: partial
|
||||
limit:
|
||||
max:
|
||||
type: int
|
||||
optional: true
|
||||
comment: Maximum number of cards to display.
|
||||
comment: Maximum number of elements to display.
|
||||
group: partial
|
||||
options:
|
||||
min: 1
|
||||
deprecated: v1.16.2
|
||||
alternative: limit
|
||||
cols:
|
||||
type: select
|
||||
optional: true
|
||||
@@ -57,6 +60,9 @@ arguments:
|
||||
Address for the button or hyperlink. If set, a button is added if the
|
||||
list exceeds the maximum number of cards to display.
|
||||
group: partial
|
||||
href-force:
|
||||
release: v1.16.2
|
||||
group: partial
|
||||
hrefTitle:
|
||||
type: string
|
||||
optional: true
|
||||
@@ -87,4 +93,5 @@ arguments:
|
||||
comment: >-
|
||||
Styles to apply to the individual cards. Supported elements are `ratio`,
|
||||
`orientation`, `portrait`, and `width`.
|
||||
|
||||
padding:
|
||||
release: v1.16.2
|
||||
|
@@ -180,8 +180,8 @@
|
||||
{{ end }}
|
||||
|
||||
{{- if eq $args.orientation "none" }}{{ $thumbnail = "" }}{{ $icon = "" }}{{ end -}}
|
||||
{{- if eq $args.body "title" }}{{ $description = "" }}{{ end -}}
|
||||
{{- if eq $args.body "none" }}{{ $title = "" }}{{ $description = "" }}{{ end -}}
|
||||
{{- if or (eq $args.bodyStyle "title") (eq $args.body "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 }}
|
||||
|
||||
{{- $thumbnailArgs := dict
|
||||
|
@@ -99,5 +99,5 @@
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
@@ -24,26 +24,27 @@
|
||||
{{ $params := dict
|
||||
"page" $args.page
|
||||
"list" $args.list
|
||||
"max" $args.max
|
||||
"limit" (or $args.limit $args.max)
|
||||
"class" "border-0 card-zoom"
|
||||
"header-style" "none"
|
||||
"body-style" "title"
|
||||
"footer-style" "none"
|
||||
"href" $args.href
|
||||
"href-title" $args.hrefTitle
|
||||
"link-type" (or $args.linkType $args.buttonType)
|
||||
"href" $args.href
|
||||
"href-force" $args.hrefForce
|
||||
"href-title" $args.hrefTitle
|
||||
"link-type" (or $args.linkType $args.buttonType)
|
||||
}}
|
||||
|
||||
{{- partial "assets/card-group.html" (merge $params
|
||||
(dict
|
||||
"cols" $args.cols
|
||||
"gutter" $args.gutter
|
||||
"padding" 3
|
||||
"padding" $args.padding
|
||||
"orientation" "stacked"
|
||||
"scroll" true
|
||||
"bento" true
|
||||
"spacer" $args.animated
|
||||
"portrait" true
|
||||
"portrait" false
|
||||
"valign" (cond $args.animated "" "end")
|
||||
"styles" $args.styles
|
||||
"wrapper" "card-stack p-0 my-3 d-none d-md-block"
|
||||
|
Reference in New Issue
Block a user