Bootstrap Article Cards Shortcode

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 Jan 24, 2024
NO IMAGE
github.com/hugomods/decap-cms/v0.9.0
0.9.0 (2024-01-24) Please check out interested PRs for details, the docs page hasn’t been updated yet. Features ✨...

Read more

Blog Jan 22, 2024
Deploy Hugo static sites on Digitalocean App Platform via Docker
DigitalOcean app platform offers a starter tier, which allows creating up to three static sites for free, in this...

Read more

Releases Jan 20, 2024
NO IMAGE
github.com/hugomods/debugger/v0.1.1
0.1.1 (2024-01-20) Bug Fixes 🐞 deps: require github.com/hugomods/icons/vendors/bootstrap module (710dafc)

Read more

Default Article Cards Without Link Text

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