Hinode logo
  • About 
  • Docs 
  • Components 
  • Guides 
  • Releases 
  •  
  •    Toggle theme
    •   Light
    •   Dark
    •   Auto
  •  
    •   Light
    •   Dark
    •   Auto
Docs
    • Introduction
    • Commands
    • Hosting and deployment
    • Upgrading
    • Contribute
    • Troubleshooting
    • Content management
    • Content organization
    • Typography
    • Links and cross-references
    • Images and figures
    • Tables
    • Icons
    • Layout
    • Colors
    • Color modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Badge
    • Breadcrumb
    • Button
    • Button group
    • Card
    • Card group
    • Carousel
    • Collapse
    • Command prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and tabs
    • Release
    • Spinner
    • Spinner
    • Sub
    • Sup
    • Timeline
    • Toast
    • Tooltip
    • Overview
    • Styles
    • Scripts
    • Icons
    • Module development
    • Server headers
    • Server-side redirection
    • Credits
    • License
    • Introduction
    • Commands
    • Hosting and deployment
    • Upgrading
    • Contribute
    • Troubleshooting
    • Content management
    • Content organization
    • Typography
    • Links and cross-references
    • Images and figures
    • Tables
    • Icons
    • Layout
    • Colors
    • Color modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Badge
    • Breadcrumb
    • Button
    • Button group
    • Card
    • Card group
    • Carousel
    • Collapse
    • Command prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and tabs
    • Release
    • Spinner
    • Spinner
    • Sub
    • Sup
    • Timeline
    • Toast
    • Tooltip
    • Overview
    • Styles
    • Scripts
    • Icons
    • Module development
    • Server headers
    • Server-side redirection
    • 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  

New in v0.18.6 - The card now supports inner content too. As a result, references to the card shortcode must be closed of 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="editing" header="publication" footer="tags" orientation="horizontal" class="col-sm-12 col-lg-8 mx-auto" />}}

Arguments  

The shortcode supports the following arguments:

ArgumentRequiredDescription
pathNoPath of the page that the card reference to. If omitted, specify the title, icon, thumbnail, and body (inner content) as needed.
titleNoOptional title of the card, replaces the title of the referenced page (if any).
classNoOptional class attribute of the card element, e.g. “w-50”.
colorNoOptional theme color of the card, either “primary”, “secondary”, “success”, “danger”, “warning”, “info”, “light”, “dark”, “white”, “black”, “body”, or “body-tertiary”. By default, no color is specified.
paddingNoOptional padding of the content, either “0”, “1”, “2”, “3”, “4”, “5”, or “auto” (default).
gutterNoIf set, adds a wrapper around the card that defines a gutter between columns in a group. The value can be either “0” (default), “1”, “2”, “3”, “4”, or “5”.
headerNoOptional header components of the card, displayed in small caps. Supported values are “full” (default), “publication”, “tags”, and “none”.
footerNoOptional footer components of the card, displayed in small caps. Supported values are “full”, “publication”, “tags”, and “none” (default).
orientationNoOptional placecement of the thumbnail, either “stacked” (default), “horizontal”, or “none”.
thumbnailNoOptional thumbnail image url, displayed on the top or the left of the card.
altNo
v0.19.0  
  Optional alternate text for the thumbnail, uses “title” by default.
iconNoOptional Font Awesome icon, displayed on the top or the left of the card.

Examples  

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

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="button" header="none" orientation="none" />}}
    {{< card color="secondary" path="button" header="none" orientation="none" />}}
    {{< card color="success" path="button" header="none" orientation="none" />}}
    {{< card color="danger" path="button" header="none" orientation="none" />}}
    {{< card color="warning" path="button" header="none" orientation="none" />}}
    {{< card color="info" path="button" header="none" orientation="none" />}}
    {{< card color="light" path="button" header="none" orientation="none" />}}
    {{< card color="dark" path="button" header="none" orientation="none" />}}
    {{< card color="white" path="button" header="none" orientation="none" />}}
    {{< card color="black" path="button" header="none" orientation="none" />}}
    {{< card color="body" path="button" header="none" orientation="none" />}}
    {{< card color="body-tertiary" path="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="editing" header="full" orientation="none" />}}
    {{< card path="editing" header="publication" orientation="none" />}}
    {{< card path="editing" header="tags" orientation="none" />}}
    {{< card path="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="editing" header="none" footer="full" orientation="none" />}}
    {{< card path="editing" header="none" footer="publication" orientation="none" />}}
    {{< card path="editing" header="none" footer="tags" orientation="none" />}}
    {{< card path="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

 

October 22, 2023 • 6 min read

Button

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

component

markdown
{{< card path="editing" header="none" footer="none" orientation="stacked" class="col-sm-12 col-lg-6 mx-auto mb-3" />}}
{{< card path="button" header="none" footer="none" orientation="stacked" padding="3" class="col-sm-12 col-lg-6 mx-auto mb-3" />}}
{{< card path="editing" header="publication" footer="tags" orientation="horizontal" class="col-sm-12 col-lg-8 mx-auto" />}}
{{< card path="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 folllowing 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="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);
}
...
Last updated: September 3, 2023 • Fix indentation (35341b2)
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.21.2
 
Links
Home 
About 
Docs 
Components 
Releases 
Guides
Getting started 
Developing modules 
Optimization 
Versioning 
Community
Issues  
Discussions  
Contribute 
Hinode
Code copied to clipboard