Bootstrap Icon Grid Shortcode

This shortcode is used to generate icon grid, which supports icon, heading and description. It is usually used to display features.

Usage

1{{< bs/icon-grid [data] >}}
PositionNameTypeRequiredDefaultDescription
#0datastringY-The data name of data file.
-linkTextstring--The link text, the entire card will be clickable if empty.
-alignmentstring-startAlignments: start, center or end.
-gapnumber-4Gap between items, up to 5.
-borderboolean-falseWhether to enable border.

Data

The data should be placed under the /data folder.

Data Entry Properties

NameTypeRequiredDefaultDescription
weightnumber--The weight of data entry, used to sorting.
titlestringY-The heading.
urlstring--The detail URL.
descriptionstring--The description, support Markdown syntax.
iconobject--Icon setting.
icon.namestringY-The icon name.
icon.vendorstring-bootstrapThe icon vendor.
icon.colorstring--The icon color.

Examples

data/features.toml
 1[fast]
 2weight = 1
 3title = "Fast"
 4description = "Google PageSpeed Insights scored perfect 💯 of four metrics on mobile and desktop."
 5[fast.icon]
 6name = "speedometer"
 7color = "green"
 8
 9[responsive]
10weight = 2
11title = "Responsive"
12url = "bootstrap"
13description = "Mobile first, built on top of the Bootstrap v5.3."
14[responsive.icon]
15name = "bootstrap"
16color = "#7952B3"
17
18[foss]
19weight = 3
20title = "FOSS"
21url = "https://github.com/hugomods"
22description = "Free and open source software, code licensed **MIT**."
23[foss.icon]
24name = "code"
25vendor = "fas"
26color = "green"

Example Data File

1{{< bs/icon-grid "features" >}}
Fast

Google PageSpeed Insights scored perfect 💯 of four metrics on mobile and desktop.

Responsive

Mobile first, built on top of the Bootstrap v5.3.

Learn more

FOSS

Free and open source software, code licensed MIT.

Learn more

1{{< bs/icon-grid data=features linkText="Read more" >}}
Fast

Google PageSpeed Insights scored perfect 💯 of four metrics on mobile and desktop.

Responsive

Mobile first, built on top of the Bootstrap v5.3.

Read more

FOSS

Free and open source software, code licensed MIT.

Read more

The entire card will be clickable if the link text is empty.

1{{< bs/icon-grid data=features linkText="" >}}
Fast

Google PageSpeed Insights scored perfect 💯 of four metrics on mobile and desktop.

Align to Center

1{{< bs/icon-grid data="features" alignment="center" >}}
Fast

Google PageSpeed Insights scored perfect 💯 of four metrics on mobile and desktop.

Responsive

Mobile first, built on top of the Bootstrap v5.3.

Learn more

FOSS

Free and open source software, code licensed MIT.

Learn more

Smaller Gap

1{{< bs/icon-grid data="features" gap=2 >}}
Fast

Google PageSpeed Insights scored perfect 💯 of four metrics on mobile and desktop.

Responsive

Mobile first, built on top of the Bootstrap v5.3.

Learn more

FOSS

Free and open source software, code licensed MIT.

Learn more

Without Border

1{{< bs/icon-grid data="features" border=false >}}
Fast

Google PageSpeed Insights scored perfect 💯 of four metrics on mobile and desktop.

Responsive

Mobile first, built on top of the Bootstrap v5.3.

Learn more

FOSS

Free and open source software, code licensed MIT.

Learn more