Skip to content

Commit fba514e

Browse files
authored
Merge pull request #58 from gethinode/develop
feat(components): add link-icon example to card documentation
2 parents c1d563d + d6bea1c commit fba514e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

content/components/card.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,23 @@ Use the `orientation` argument to customize the placement of the card's thumbnai
148148
{{< /example >}}
149149
<!-- markdownlint-enable MD037 -->
150150

151+
### Link icon
152+
153+
Use the `link-icon` argument to show a hover icon to the right of the card title, signalling
154+
that the card is clickable. The icon is hidden by default and slides in when the card is
155+
hovered or focused. It can be enabled globally via `main.cards.linkIcon` in your site
156+
parameters, and overridden per card-group or individual card using the `link-icon` argument.
157+
The icon only appears on cards that link to a page or URL and have no explicit button.
158+
159+
<!-- markdownlint-disable MD037 -->
160+
{{< example lang="hugo" >}}
161+
{{</* card-group cols="2" gutter="3" header-style="none" link-icon="true" */>}}
162+
{{</* card path="button" /*/>}}
163+
{{</* card path="link" /*/>}}
164+
{{</* /card-group */>}}
165+
{{< /example >}}
166+
<!-- markdownlint-enable MD037 -->
167+
151168
## Styling
152169

153170
The file `assets/scss/components/_card.scss` defines the Hinode-specific styling of the `card` shortcode. Check the [Bootstrap documentation](https://getbootstrap.com/docs/5.3/components/card/#css) for additional styling options.

0 commit comments

Comments
 (0)