Skip to content

Commit 48ed77b

Browse files
authored
Merge pull request #31 from gethinode/develop
docs: update block args to snake_case and bump exampleSite dependency
2 parents 1a62c80 + 6f2bc94 commit 48ed77b

10 files changed

Lines changed: 41 additions & 41 deletions

File tree

content/blocks/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ content_blocks:
1919
breadcrumb: true
2020

2121
- _bookshop_name: articles
22-
hide-empty: false
22+
hide_empty: false
2323
input:
2424
reverse: false
2525
sort: title
@@ -30,7 +30,7 @@ content_blocks:
3030
paginate: true
3131
pagination: 25
3232
cover: false
33-
header-style: none
34-
body-style: minimal
33+
header_style: none
34+
body_style: minimal
3535
class: card-minimal
3636
---

content/blocks/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Set `link-type` to `link` to add links below the content.
8282
image: /img/placeholder.png
8383
ratio: 1x1
8484
order: first
85-
link-type: link
85+
link_type: link
8686
links:
8787
- title: First link
8888
url: #!
@@ -115,7 +115,7 @@ Set `link-type` to `button` to add buttons below the content. You can adjust the
115115
image: /img/placeholder.png
116116
ratio: 1x1
117117
order: first
118-
link-type: button
118+
link_type: button
119119
links:
120120
- title: Primary button
121121
url: #!

content/blocks/articles.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ The `articles` block renders a group of cards for selected content. By default,
2626
section: blog
2727
reverse: false
2828
sort: date
29-
hide-empty: false
30-
header-style: none
29+
hide_empty: false
30+
header_style: none
3131
orientation: stacked
3232
more:
3333
title: More Blogs
@@ -59,9 +59,9 @@ Set `orientation` to `horizontal` to render the article's illustration before th
5959
section: blog
6060
reverse: false
6161
sort: date
62-
hide-empty: false
63-
header-style: none
64-
body-style: title
62+
hide_empty: false
63+
header_style: none
64+
body_style: title
6565
orientation: horizontal
6666
more:
6767
title: More Blogs
@@ -79,7 +79,7 @@ Set `orientation` to `horizontal` to render the article's illustration before th
7979

8080
### Rich cards
8181

82-
Adjust the `header-style`, `body-style`, and `footer-style` to refine the card elements being displayed.
82+
Adjust the `header_style`, `body_style`, and `footer_style` to refine the card elements being displayed.
8383

8484
<!-- markdownlint-disable MD037 -->
8585
{{< example-bookshop lang="bookshop" >}}
@@ -93,10 +93,10 @@ Adjust the `header-style`, `body-style`, and `footer-style` to refine the card e
9393
section: blog
9494
reverse: false
9595
sort: date
96-
hide-empty: false
97-
header-style: publication
98-
body-style: full
99-
footer-style: tags
96+
hide_empty: false
97+
header_style: publication
98+
body_style: full
99+
footer_style: tags
100100
orientation: stacked
101101
more:
102102
title: More Blogs
@@ -114,14 +114,14 @@ Adjust the `header-style`, `body-style`, and `footer-style` to refine the card e
114114

115115
### Minimal cards
116116

117-
Set `body-style` to `minimal` to show the title of an article only. The predefined `class` attribute `card-minimal` applies an underline effect on hover.
117+
Set `body_style` to `minimal` to show the title of an article only. The predefined `class` attribute `card-minimal` applies an underline effect on hover.
118118

119119
<!-- markdownlint-disable MD037 -->
120120
{{< example-bookshop lang="bookshop" >}}
121121

122122
```yml
123123
- _bookshop_name: articles
124-
hide-empty: false
124+
hide_empty: false
125125
input:
126126
section: blog
127127
reverse: false
@@ -131,8 +131,8 @@ Set `body-style` to `minimal` to show the title of an article only. The predefin
131131
cols: 5
132132
padding: 0
133133
cover: false
134-
header-style: none
135-
body-style: minimal
134+
header_style: none
135+
body_style: minimal
136136
class: card-minimal
137137
```
138138

content/blocks/cards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Set the `icon` attribute of each `element` to an icon to render illustrated card
9595
color: body-tertiary
9696
subtle: false
9797
orientation: stacked
98-
icon-style: text-primary
98+
icon_style: text-primary
9999
align: start
100100
padding: 0
101101
elements:
@@ -131,7 +131,7 @@ Set the `icon` attribute of each `element` to an icon to render illustrated card
131131
color: body-tertiary
132132
subtle: false
133133
orientation: horizontal
134-
icon-style: text-primary
134+
icon_style: text-primary
135135
align: start
136136
padding: 0
137137
elements:

content/blocks/cta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Provide a `contact` person to include the name and thumbnail of a contact person
6363
```yml
6464
- _bookshop_name: cta
6565
contact: Betty White
66-
caption-url: https://gethinode.com
66+
caption_url: https://gethinode.com
6767
background:
6868
color: body-tertiary
6969
subtle: false

content/blocks/menu.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Set `menu-style` to `grid` to render a responsive menu as a grid.
2020
```yml
2121
- _bookshop_name: menu
2222
menu: services
23-
menu-style: grid
24-
icon-rounded: true
25-
icon-style: fa-1x
23+
menu_style: grid
24+
icon_rounded: true
25+
icon_style: fa-1x
2626
```
2727
2828
{{< /example-bookshop >}}
@@ -38,9 +38,9 @@ Set `menu-style` to `masonry` to render a responsive menu using masonry style.
3838
```yml
3939
- _bookshop_name: menu
4040
menu: services
41-
menu-style: masonry
42-
icon-rounded: true
43-
icon-style: fa-1x
41+
menu_style: masonry
42+
icon_rounded: true
43+
icon_style: fa-1x
4444
```
4545

4646
{{< /example-bookshop >}}

content/blocks/panels.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Set `tab-type` to `tabs` to adjust the panel controls.
2828
color: body-tertiary
2929
subtle: false
3030
width: 12
31-
tab-type: tabs
31+
tab_type: tabs
3232
ratio: 1x1
3333
elements:
3434
- title: First Panel
@@ -63,7 +63,7 @@ Set `tab-type` to `pills` to adjust the panel controls.
6363
color: body-tertiary
6464
subtle: false
6565
width: 12
66-
tab-type: pills
66+
tab_type: pills
6767
ratio: 1x1
6868
elements:
6969
- title: First Panel
@@ -98,7 +98,7 @@ Set `tab-type` to `underline` to adjust the panel controls.
9898
color: body-tertiary
9999
subtle: false
100100
width: 12
101-
tab-type: underline
101+
tab_type: underline
102102
ratio: 1x1
103103
elements:
104104
- title: First Panel
@@ -133,7 +133,7 @@ Set `tab-type` to `callout` to adjust the panel controls.
133133
color: body-tertiary
134134
subtle: false
135135
width: 12
136-
tab-type: callout
136+
tab_type: callout
137137
ratio: 1x1
138138
elements:
139139
- title: First Panel

content/blocks/team.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The `team` content block renders a group of team members.
2323
reverse: false
2424
sort: title
2525
cols: 3
26-
hide-empty: false
27-
header-style: none
26+
hide_empty: false
27+
header_style: none
2828
padding: 0
2929
background:
3030
color: body-tertiary

content/blocks/video-message.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Set `orientation` to `horizontal` to display the messages to the right of the vi
2929
color: body-tertiary
3030
subtle: false
3131
orientation: horizontal
32-
icon-style: fa-lg
32+
icon_style: fa-lg
3333
video:
3434
provider: vimeo
35-
media-id: "55073825"
35+
media_id: "55073825"
3636
autoplay: true
3737
color: black
3838
messages:
@@ -65,10 +65,10 @@ Set `orientation` to `stacked` to display the messages below the video.
6565
color: body-tertiary
6666
subtle: false
6767
orientation: stacked
68-
icon-style: fa-lg
68+
icon_style: fa-lg
6969
video:
7070
provider: vimeo
71-
media-id: "55073825"
71+
media_id: "55073825"
7272
autoplay: true
7373
color: black
7474
messages:

content/components/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ content_blocks:
2020
breadcrumb: true
2121

2222
- _bookshop_name: articles
23-
hide-empty: false
23+
hide_empty: false
2424
input:
2525
reverse: false
2626
sort: title
@@ -31,7 +31,7 @@ content_blocks:
3131
paginate: true
3232
pagination: 50
3333
cover: false
34-
header-style: none
35-
body-style: minimal
34+
header_style: none
35+
body_style: minimal
3636
class: card-minimal
3737
---

0 commit comments

Comments
 (0)