Bootstrap Article Cards Shortcode

Shortcode to generate a list of articles in card style.

Syntax

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

Parameters

limit

PositionNameTypeRequiredDefaultSince
-limitnumber-12-

The number of articles.

linkText

PositionNameTypeRequiredDefaultSince
-linkTextstring-Read more-

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

sections

PositionNameTypeRequiredDefaultSince
-sectionsstring---

The comma-separated sections, such as blog,docs, empty means all.

summaryLen

PositionNameTypeRequiredDefaultSince
-summaryLennumber-240-

The max length of summary.

Site Parameters

limit

NameTypeRequiredDefaultSince
limitnumber-12-

The default number of articles.

image_height

NameTypeRequiredDefaultSince
image_heightnumber-240-

The default height of image.

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}