Bootstrap Article Cards Shortcode

This shortcode generate a list of articles in card style.

Usage

1{{< bs/article-cards >}}

Parameters

limit

PositionNameTypeDefaultRequired
-limitnumber12-

The number of articles.

linkText

PositionNameTypeDefaultRequired
-linkTextstringRead more-

The text of link, the entire card will be clickable when empty.

sections

PositionNameTypeDefaultRequired
-sectionsstring--

The article sections, multiple sections separated by comma, such as blog,docs.

summaryLen

PositionNameTypeDefaultRequired
-summaryLennumber240-

The max length of summary.

Site Parameters

hugo.yaml

1params:
2  bootstrap:
3    article_cards:
4      image_height: 240
5      limit: 12

hugo.toml

1[params]
2  [params.bootstrap]
3    [params.bootstrap.article_cards]
4      image_height = 240
5      limit = 12

hugo.json

 1{
 2   "params": {
 3      "bootstrap": {
 4         "article_cards": {
 5            "image_height": 240,
 6            "limit": 12
 7         }
 8      }
 9   }
10}
NameTypeRequiredDefaultDescription
limitnumber-12The default number of posts.
image_heightnumber-240The default height of image.

Examples

Default Article Cards

1{{< bs/article-cards limit=3 >}}
Releases Feb 25, 2024
NO IMAGE
github.com/hugomods/icons/vendors/simple-icons/v1.0.31
1.0.31 (2024-02-25) Continuous Integration deps: update module github.com/hugomods/simple-icons to v11.6.0+incompatible...

Read more

Releases Feb 25, 2024
NO IMAGE
github.com/hugomods/simple-icons/v11.6.0

Read more

Releases Feb 23, 2024
NO IMAGE
github.com/hugomods/bootstrap/v0.17.3
0.17.3 (2024-02-23) Bug Fixes 🐞 accordion: allow using page data resources (0b0249b)

Read more

Default Article Cards Without Link Text

1{{< bs/article-cards limit=3 linkText="" >}}