Cards
A native fenced-div pattern
Askr cards use nested Quarto fenced divs. The shell has no click handler, and the heading link supplies the card’s primary navigation. Any links authored in the body keep their own native destinations.
To place two cards side by side on wider screens, use .askr-grid. The Figures responsive-groups example shows the breakpoint and a paired card example.
Gallery examples
These two cards link to existing Usage pages. The longer Traditional Chinese heading demonstrates how CJK text wraps inside a card.
安裝 Askr
Install Askr in a Quarto project and configure the site options you need.
用 Areas、頁面清單與 Sections 整理網站導覽
Review how Areas, the Page List, and the active page’s Sections work together.
Migrate existing course cards
Askr v0.12.0 introduced the Card component. Install the current release in the consumer project:
quarto add arfiligol/askr@v0.14.0 --no-promptRename only the old card classes as shown. Preserve heading text, heading level, link target, and description content. Remove Bootstrap’s generic card and card-body classes along with the old names.
| Existing class | Askr Card class |
|---|---|
.card.course-card |
.askr-card |
.card-body |
.askr-card-body |
.course-card-title |
.askr-card-title |
After renaming the markup, remove only local CSS rules for the old course-card classes and retain unrelated consumer styles. Use the fenced-div pattern above for newly authored Cards.