Hinode logo
  • About 
  • Docs 
  • Components 
  • Guides 
  • Releases 
  •  
Docs
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License

Card

Share via
Hinode
Link copied to clipboard

Use the card shortcode to display a card that links to a content page.

On this page
Overview   Arguments   Examples   Colored Cards   Custom Header   Custom Footer   Image Placement   Inline Content   Custom Styling  

Overview  

  Important

Cards support inner content since release v0.18.6  . As a result, references to the card shortcode must be closed or self-closed.

Use the card shortcode to display a card that links to a content page. When using a rich layout, the card includes a thumbnail (or icon) and a header. As an example, the following shortcode displays a horizontal card that links to the Editing guide. It includes a custom header and footer. You can use the Card-Group Shortcode to align multiple cards and to position them in a grid.

Creating Your First Site With Hinode

April 3, 2023 •13 min read

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

Guide • Vscode

markdown
{{< card path="/guides/editing" header="publication" footer="tags" orientation="horizontal" class="col-sm-12 col-lg-8 mx-auto" />}}

Arguments  

The shortcode supports the following arguments:

Name Type Required Default Comment
align select start v0.23.0      Icon alignment. Supported values: [start, end, center].
alt string v0.19.0      Alternate text for the thumbnail, uses title by default.
anchor select v0.24.23      Anchor of the thumbnail’s crop box, defaults to anchor value set in imaging section of the site configuration (usually Smart). Supported values: [TopLeft, Top, TopRight, Left, Center, Right, BottomLeft, Bottom, BottomRight, Smart].
body select full v0.24.16      Body of the card. Supported values: [full, title, none].
button bool v0.23.0      Flag indicating the cards should include a button that links to the provided address.
buttonLabel string v0.23.2      Label of the link button, defaults to the card title.
buttonType select button v0.23.18      Type of the button element. Supported values: [link, button].
class string Class attribute of the card element, e.g. “w-50”.
color select Theme color of the card. By default, no color is specified. Supported values: [primary, secondary, success, danger, warning, info, light, dark, white, black, body, body-tertiary].
footer select none Footer components of the card, displayed in small caps. Supported values: [full, publication, tags, none].
gutter select 0 Gutter between columns in a group. Supported values: [0, 1, 2, 3, 4, 5].
header select full Header components of the card, displayed in small caps. Supported values: [full, publication, tags, none].
icon string Font Awesome icon, displayed on top or the left of the card.
iconRounded bool v0.24.8      Stack the icon in a round container.
orientation select stacked Placement of the thumbnail or icon. Supported values: [stacked, horizontal, horizontal-sm, overlay, none].
padding select auto Padding of the content. Supported values: [0, 1, 2, 3, 4, 5, auto].
path path Path of the page that the card reference to. If omitted, specify the title, icon, thumbnail, and description (inner content) as needed.
portrait bool false v0.24.16      Flag to adjust the ratio from landscape to portrait. The image itself is not rotated, only the crop area is adjusted. Not applicable to vector graphics.
style string v0.23.0      Icon style.
subtle bool v0.23.0      Apply subtle background colors.
thumbnail path Thumbnail image url, displayed on top or the left of the card.
title string Title of the card, replaces the title of the referenced page (if any).
wrapper string Element class of the card wrapper.
Name Type Required Default
align select start
v0.23.0      Icon alignment. Supported values: [start, end, center].
alt string
v0.19.0      Alternate text for the thumbnail, uses title by default.
anchor select
v0.24.23      Anchor of the thumbnail’s crop box, defaults to anchor value set in imaging section of the site configuration (usually Smart). Supported values: [TopLeft, Top, TopRight, Left, Center, Right, BottomLeft, Bottom, BottomRight, Smart].
body select full
v0.24.16      Body of the card. Supported values: [full, title, none].
button bool
v0.23.0      Flag indicating the cards should include a button that links to the provided address.
buttonLabel string
v0.23.2      Label of the link button, defaults to the card title.
buttonType select button
v0.23.18      Type of the button element. Supported values: [link, button].
class string
Class attribute of the card element, e.g. “w-50”.
color select
Theme color of the card. By default, no color is specified. Supported values: [primary, secondary, success, danger, warning, info, light, dark, white, black, body, body-tertiary].
footer select none
Footer components of the card, displayed in small caps. Supported values: [full, publication, tags, none].
gutter select 0
Gutter between columns in a group. Supported values: [0, 1, 2, 3, 4, 5].
header select full
Header components of the card, displayed in small caps. Supported values: [full, publication, tags, none].
icon string
Font Awesome icon, displayed on top or the left of the card.
iconRounded bool
v0.24.8      Stack the icon in a round container.
orientation select stacked
Placement of the thumbnail or icon. Supported values: [stacked, horizontal, horizontal-sm, overlay, none].
padding select auto
Padding of the content. Supported values: [0, 1, 2, 3, 4, 5, auto].
path path
Path of the page that the card reference to. If omitted, specify the title, icon, thumbnail, and description (inner content) as needed.
portrait bool false
v0.24.16      Flag to adjust the ratio from landscape to portrait. The image itself is not rotated, only the crop area is adjusted. Not applicable to vector graphics.
style string
v0.23.0      Icon style.
subtle bool
v0.23.0      Apply subtle background colors.
thumbnail path
Thumbnail image url, displayed on top or the left of the card.
title string
Title of the card, replaces the title of the referenced page (if any).
wrapper string
Element class of the card wrapper.

Examples  

Change the style of your card with class attributes and shortcode arguments.

Colored Cards  

Use the color argument to set the background color of the card. As an example, the following shortcodes display a plain card for each available color. The cards are embedded in a grid. The final two cards with the color body and body-tertiary are Color-Mode Aware.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

Button

Use the button shortcode to display a button with a hyperlink.

markdown
{{< card-group cols="4" gutter="3" >}}
    {{< card color="primary" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="secondary" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="success" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="danger" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="warning" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="info" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="light" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="dark" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="white" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="black" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="body" path="/docs/components/button/" header="none" orientation="none" />}}
    {{< card color="body-tertiary" path="/docs/components/button/" header="none" orientation="none" />}}
{{< /card-group >}}

Custom Header  

Use the header argument to customize the contents of the card.

April 3, 2023 •13 min read • Guide

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

April 3, 2023 •13 min read

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

Guide • Vscode

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

markdown
{{< card-group cols="4" gutter="3" >}}
    {{< card path="/guides/editing" header="full" orientation="none" />}}
    {{< card path="/guides/editing" header="publication" orientation="none" />}}
    {{< card path="/guides/editing" header="tags" orientation="none" />}}
    {{< card path="/guides/editing" header="none" orientation="none" />}}
{{< /card-group >}}

Custom Footer  

Use the footer argument to customize the contents of the card.

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

April 3, 2023 •13 min read • Guide

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

April 3, 2023 •13 min read

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

Guide • Vscode

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

markdown
{{< card-group cols="4" gutter="3" >}}
    {{< card path="/guides/editing" header="none" footer="full" orientation="none" />}}
    {{< card path="/guides/editing" header="none" footer="publication" orientation="none" />}}
    {{< card path="/guides/editing" header="none" footer="tags" orientation="none" />}}
    {{< card path="/guides/editing" header="none" footer="none" orientation="none" />}}
{{< /card-group >}}

Image Placement  

Use the orientation argument to customize the placement of the card’s thumbnail or icon.

Creating Your First Site With Hinode

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

 

Button

Use the button shortcode to display a button with a hyperlink.

Creating Your First Site With Hinode

April 3, 2023 •13 min read

Creating Your First Site With Hinode

Guide on how to set up your site with version control using npm, GitHub and VSCode.

Guide • Vscode

 

December 29, 2023 •8 min read

Button

Use the button shortcode to display a button with a hyperlink.

Component

markdown
{{< card path="/guides/editing" header="none" footer="none" orientation="stacked" class="col-sm-12 col-lg-6 mx-auto mb-3" />}}
{{< card path="/docs/components/button/" header="none" footer="none" orientation="stacked" padding="3" class="col-sm-12 col-lg-6 mx-auto mb-3" />}}
{{< card path="/guides/editing" header="publication" footer="tags" orientation="horizontal" class="col-sm-12 col-lg-8 mx-auto" />}}
{{< card path="/docs/components/button/" header="publication" footer="tags" orientation="horizontal" padding="3" class="col-sm-12 col-lg-8 mx-auto" />}}

Inline Content  

Use title, thumbnail, icon, and inner content to define the card’s content inline.

 

Title

This is the body of the card. It supports Markdown.
Title

Title

This is the body of the card. It supports Markdown too.
markdown
{{< card header="none" footer="none" padding="3" class="col-sm-12 col-lg-8 mx-auto mb-3" title="Title" icon="fa address-card" >}}
    This is the `body` of the card. It supports Markdown.
{{< /card >}}

{{< card header="none" footer="none" padding="3" class="col-sm-12 col-lg-8 mx-auto" title="Title" thumbnail="img/watch.jpg" >}}
    This is the `body` of the card. It supports Markdown too.
{{< /card >}}

Custom Styling  

Use the class argument to customize the styling of the card. The following example applies the style card-shrink to apply an animation effect when hovering over the card.

 

Button

Use the button shortcode to display a button with a hyperlink.

markdown
{{< card path="/docs/components/button/" header="none" footer="none" padding="3" class="col-sm-12 col-lg-8 mx-auto card-shrink" />}}

The style is defined in the theme.scss file, which is transpiled into the Site’s Stylesheet.

  • assets/scss/theme/theme.scss
.card-shrink {
    transition: 0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12), 0.3s box-shadow, 0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
    cursor: pointer;
}

.card-shrink:hover {
    transform: scale(0.99);
    box-shadow: none if($enable-important-utilities, !important, null);
}
...
• Update to Hinode v0.27.13 (b6f5054)
On this page:
Overview   Arguments   Examples   Colored Cards   Custom Header   Custom Footer   Image Placement   Inline Content   Custom Styling  
Card
Card
Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5.
Code licensed MIT, docs CC BY-NC 4.0
Currently v0.29.3
Privacy | Cookies
 
Links
Home 
About 
Docs 
Components 
Releases 
Guides
Getting Started 
Developing Modules 
Optimization 
Versioning 
Community
Issues   
Discussions   
Contribute 
Hinode
Code copied to clipboard