Bootstrap Article Cards Shortcode

Shortcode to generate a list of articles in card style.

Syntax

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

Parameters

limit

PositionNameTypeRequiredDefaultSinceExample
-limitnumber-12--

The number of articles.

linkText

PositionNameTypeRequiredDefaultSinceExample
-linkTextstring-Read more--

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

sections

PositionNameTypeRequiredDefaultSinceExample
-sectionsstring----

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

summaryLen

PositionNameTypeRequiredDefaultSinceExample
-summaryLennumber-240--

The max length of summary.

Site Parameters

limit

NameContextTypeRequiredDefaultSinceExample
limit-number-12--

The default number of articles.

image_height

NameContextTypeRequiredDefaultSinceExample
image_height-number-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}