PaneStack is building! 🎉 Discover what’s new

Hextra Shortcodes

The main usage of these shortcodes are within the layout hextra-home.

hextra/feature-card

A shortcode for displaying a feature card.

Usage

{{< hextra/feature-card title="Title" subtitle="Subtitle" >}}

Options

ParameterDescription
titleThe title of the card.
subtitleThe subtitle of the card.
classThe class of the card.
imageThe image of the card.
imageClassThe class of the image.
styleThe style of the card.
iconThe icon of the card.
linkThe link of the card.

hextra/feature-grid

A shortcode for displaying a feature grid.

Usage

{{< hextra/feature-grid cols="3" >}}
  {{< hextra/feature-card title="One" >}}
  {{< hextra/feature-card title="Two" >}}
  {{< hextra/feature-card title="Three" >}}
{{< /hextra/feature-grid >}}

Options

ParameterDescription
colsThe number of columns.
styleThe style of the grid.

hextra/hero-badge

A shortcode for rendering a badge with a link.

Usage

{{< hextra/hero-badge >}}
  <div class="hx:w-2 hx:h-2 hx:rounded-full hx:bg-primary-400"></div>
  <span>Free, open source</span>
  {{< icon name="arrow-circle-right" attributes="height=14" >}}
{{< /hextra/hero-badge >}}

Options

ParameterDescription
linkThe link of the badge.
classThe class of the badge.
styleThe style of the badge.

hextra/hero-button

A shortcode for rendering a button with a link.

Usage

{{< hextra/hero-button text="Get Started" link="/docs" >}}

Options

ParameterDescription
linkThe link of the button.
textThe text of the button.
styleThe style of the button.

hextra/hero-container

A simple hero container with an image on the left side.

Usage

{{< hextra/hero-container image="images/logo.svg"  imageTitle="title" >}}
    Content
{{< /hextra/hero-container >}}

Options

ParameterDescription
classThe class of the container.
colsThe number of columns (default: 2).
imageThe image of the container.
imageCardWhether to display the image as a card (default: false).
imageClassThe class of the image.
imageLinkThe link of the image.
imageStyleThe style of the image.
imageTitleThe title of the image.
imageWidthThe width of the image (default: 350).
imageHeightThe height of the image (default: 350).
styleThe style of the container.

hextra/hero-headline

A shortcode for displaying a hero headline.

Usage

{{< hextra/hero-headline >}}
  Build modern websites&nbsp;<br class="hx:sm:block hx:hidden" />with Markdown and Hugo
{{< /hextra/hero-headline >}}

Options

ParameterDescription
styleThe style of the headline.

hextra/hero-section

A simple hero section with a heading and optional style.

Usage

{{< hextra/hero-section heading="h3" >}}Title{{< /hextra/hero-section >}}>

Options

ParameterDescription
headingThe heading level (default: h2).
styleThe style of the heading.
contentThe content of the heading.

hextra/hero-subtitle

A shortcode for displaying a hero subtitle.

Usage

{{< hextra/hero-subtitle >}}
  Fast, batteries-included Hugo theme&nbsp;<br class="hx:sm:block hx:hidden" />for creating beautiful static websites
{{< /hextra/hero-subtitle >}}

Options

ParameterDescription
styleThe style of the subtitle.