blocks/section
“blocks/section” 区块/章节短代码是一个通用内容容器,提供两种样式:一种适用于常规内容,另一种在样式上更适用于包裹横向排列的功能介绍区块。
以下示例展示了一个包含3个功能区块的章节容器。
效果1(type=“row”)
Fastest OS on the planet!
The new TechOS operating system is an open source project. It is a new project, but with grand ambitions. Please follow this space for updates!
Contributions welcome!
We do a Pull Request contributions workflow on GitHub. New users are always welcome!
效果2(type=“container”)
Fastest OS on the planet!
The new TechOS operating system is an open source project. It is a new project, but with grand ambitions. Please follow this space for updates!
Contributions welcome!
We do a Pull Request contributions workflow on GitHub. New users are always welcome!
代码
{{< blocks/section color="dark" type="row" >}}
{{% blocks/feature icon="fa-lightbulb" title="Fastest OS **on the planet**!" %}}
The new **TechOS** operating system is an open source project. It is a new project, but with grand ambitions.
Please follow this space for updates!
{{% /blocks/feature %}}
{{% blocks/feature icon="fa-brands fa-github" title="Contributions welcome!" url="https://github.com/gohugoio/hugo" %}}
We do a [Pull Request](https://github.com/gohugoio/hugo/pulls) contributions workflow on **GitHub**. New users are always welcome!
{{% /blocks/feature %}}
{{% blocks/feature icon="fa-brands fa-x-twitter" title="Follow us on Twitter!" url="https://twitter.com/GoHugoIO" %}}
For announcement of latest features etc.
{{% /blocks/feature %}}
{{< /blocks/section >}}
| 参数 | 默认值 | 描述 |
|---|---|---|
height |
See above. | |
color |
See above. | |
type |
若需要通用容器,请指定"container"(此为默认选项);若章节需包含多列布局,则请指定"row"模式——此模式下所有列必须是该章节的直接子元素。 |