Skip to content

Commit 4ffae40

Browse files
authored
Merge pull request #1689 from gethinode/templatev2
Templatev2
2 parents b0e768b + 7d6bbfc commit 4ffae40

File tree

5 files changed

+98
-261
lines changed

5 files changed

+98
-261
lines changed

assets/scss/components/_card.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
}
9393
}
9494

95+
.card-img-overlay .card-body-link {
96+
margin-top: auto;
97+
}
98+
9599
.card-zoom .card-body-link {
96100
&:hover,
97101
&:focus {

data/structures/card-group.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ arguments:
6464
valign:
6565
release: v0.27.0
6666
styles:
67+
type:
68+
- styles
69+
- '[]map[string]interface {}'
6770
release: v0.27.0
6871
optional: true
69-
type: styles
7072
button-label:
7173
release: v1.0.0
7274
more-link-icon:

data/structures/stack.yml

Lines changed: 27 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,35 @@ comment: >-
66
behavior). Be aware a page can only contain one paginator at a time.
77
arguments:
88
page:
9-
type:
10-
- '*hugolib.pageState'
11-
- '*hugolib.pageForShortcode'
12-
optional: true
13-
comment: Context of the current page.
14-
group: partial
159
gutter:
16-
type: int
17-
optional: true
18-
default: 4
19-
comment: Gutter between columns in a group.
20-
options:
21-
min: 0
22-
max: 5
2310
release: v0.19.0
2411
list:
12+
group: partial
13+
limit:
14+
cols:
15+
release: v0.19.0
16+
href:
17+
group: partial
18+
href-force:
19+
release: v1.16.2
20+
group: partial
21+
href-title:
22+
release: v2.0.0
23+
link-type:
24+
release: v0.23.18
25+
animated:
26+
release: v0.27.0
27+
styles:
2528
type:
26-
- 'page.Pages'
27-
- 'resource.Resources'
29+
- styles
2830
- '[]map[string]interface {}'
2931
optional: true
30-
comment: Array of pages or structured content to be rendered as cards.
31-
group: partial
32-
limit:
32+
comment: >-
33+
Styles to apply to the individual cards. Supported elements are `ratio`,
34+
`orientation`, `portrait`, and `width`.
35+
padding:
36+
release: v1.16.2
37+
# deprecated arguments
3338
max:
3439
type: int
3540
optional: true
@@ -39,36 +44,14 @@ arguments:
3944
min: 1
4045
deprecated: v1.16.2
4146
alternative: limit
42-
cols:
43-
type: select
44-
optional: true
45-
default: "3"
46-
comment: Number of grid columns.
47-
options:
48-
values:
49-
- "1"
50-
- "2"
51-
- "3"
52-
- "4"
53-
- "5"
54-
- "auto"
55-
release: v0.19.0
56-
href:
57-
type: string
58-
optional: true
59-
comment: >-
60-
Address for the button or hyperlink. If set, a button is added if the
61-
list exceeds the maximum number of cards to display.
62-
group: partial
63-
href-force:
64-
release: v1.16.2
65-
group: partial
6647
hrefTitle:
6748
type: string
6849
optional: true
6950
comment: >-
7051
Title of the button or hyperlink as companion to href.
7152
group: partial
53+
deprecated: v2.0.0
54+
alternative: href-title
7255
buttonType:
7356
type: select
7457
optional: true
@@ -79,18 +62,5 @@ arguments:
7962
values:
8063
- link
8164
- button
82-
animated:
83-
type: bool
84-
optional: true
85-
default: false
86-
comment: >-
87-
Enables card animations.
88-
release: v0.27.0
89-
styles:
90-
type: styles
91-
optional: true
92-
comment: >-
93-
Styles to apply to the individual cards. Supported elements are `ratio`,
94-
`orientation`, `portrait`, and `width`.
95-
padding:
96-
release: v1.16.2
65+
deprecated: v2.0.0
66+
alternative: link-type

0 commit comments

Comments
 (0)