PaneStack is building! 🎉 Discover what’s new

Hextra Shortcodes

これらのショートコードの主な使用場所は、レイアウト hextra-home 内です。

hextra/feature-card

機能カードを表示するためのショートコード。

Usage

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

Options

ParameterDescription
titleカードのタイトル。
subtitleカードのサブタイトル。
classカードのクラス。
imageカードの画像。
imageClass画像のクラス。
styleカードのスタイル。
iconカードのアイコン。
linkカードのリンク。

hextra/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
cols列の数。
styleグリッドのスタイル。

hextra/hero-badge

リンク付きのバッジをレンダリングするためのショートコード。

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
linkバッジのリンク。
classバッジのクラス。
styleバッジのスタイル。

hextra/hero-button

リンク付きのボタンをレンダリングするためのショートコード。

Usage

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

Options

ParameterDescription
linkボタンのリンク。
textボタンのテキスト。
styleボタンのスタイル。

hextra/hero-container

左側に画像があるシンプルなヒーロー コンテナー。

Usage

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

Options

ParameterDescription
classコンテナのクラス。
cols列数(デフォルト:2)。
imageコンテナの画像。
imageCard画像をカードとして表示するかどうか(デフォルト:false)。
imageClass画像のクラス。
imageLink画像のリンク。
imageStyle画像のスタイル。
imageTitle画像のタイトル。
imageWidth画像の幅(デフォルト:350)。
imageHeight画像の高さ(デフォルト:350)。
styleコンテナのスタイル。

hextra/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
style見出しのスタイル。

hextra/hero-section

見出しとオプションのスタイルを備えたシンプルなヒーロー セクション。

Usage

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

Options

ParameterDescription
heading見出しレベル(デフォルト: h2)。
style見出しのスタイル。
content見出しの内容。

hextra/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
style字幕のスタイル。