网站建设中!🎉 查看更新内容

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字幕的样式。