--- title: Hextra Shortcodes linkTitle: Hextra sidebar: exclude: true next: /docs/guide/deploy-site --- The main usage of these shortcodes are within the layout `hextra-home`. ## `hextra/feature-card` A shortcode for displaying a feature card. ### Usage ``` {{}} ``` ### Options | Parameter | Description | |--------------|---------------------------| | `title` | The title of the card. | | `subtitle` | The subtitle of the card. | | `class` | The class of the card. | | `image` | The image of the card. | | `imageClass` | The class of the image. | | `style` | The style of the card. | | `icon` | The icon of the card. | | `link` | The link of the card. | ## `hextra/feature-grid` A shortcode for displaying a feature grid. ### Usage ``` {{}} {{}} {{}} {{}} {{}} ``` ### Options | Parameter | Description | |-----------|------------------------| | `cols` | The number of columns. | | `style` | The style of the grid. | ## `hextra/hero-badge` A shortcode for rendering a badge with a link. ### Usage ``` {{}}
Free, open source {{}} {{}} ``` ### Options | Parameter | Description | |-----------|-------------------------| | `link` | The link of the badge. | | `class` | The class of the badge. | | `style` | The style of the badge. | ## `hextra/hero-button` A shortcode for rendering a button with a link. ### Usage ``` {{}} ``` ### Options | Parameter | Description | |-----------|--------------------------| | `link` | The link of the button. | | `text` | The text of the button. | | `style` | The style of the button. | ## `hextra/hero-container` A simple hero container with an image on the left side. ### Usage ``` {{}} Content {{}} ``` ### Options | Parameter | Description | |---------------|------------------------------------------------------------| | `class` | The class of the container. | | `cols` | The number of columns (default: `2`). | | `image` | The image of the container. | | `imageCard` | Whether to display the image as a card (default: `false`). | | `imageClass` | The class of the image. | | `imageLink` | The link of the image. | | `imageStyle` | The style of the image. | | `imageTitle` | The title of the image. | | `imageWidth` | The width of the image (default: `350`). | | `imageHeight` | The height of the image (default: `350`). | | `style` | The style of the container. | ## `hextra/hero-headline` A shortcode for displaying a hero headline. ### Usage ``` {{}} Build modern websites 
with Markdown and Hugo {{}} ``` ### Options | Parameter | Description | |-----------|----------------------------| | `style` | The style of the headline. | ## `hextra/hero-section` A simple hero section with a heading and optional style. ### Usage ``` {{}}Title{{}}> ``` ### Options | Parameter | Description | |-----------|------------------------------------| | `heading` | The heading level (default: `h2`). | | `style` | The style of the heading. | | `content` | The content of the heading. | ## `hextra/hero-subtitle` A shortcode for displaying a hero subtitle. ### Usage ``` {{}} Fast, batteries-included Hugo theme 
for creating beautiful static websites {{}} ``` ### Options | Parameter | Description | |-----------|----------------------------| | `style` | The style of the subtitle. |