From f70ba59ca08df5bc118d5db34f091f345749802a Mon Sep 17 00:00:00 2001 From: Xin Date: Wed, 13 Sep 2023 04:49:01 -0400 Subject: [PATCH] fix: use relative url for card link (#52) * fix: cards links should not redirect to 404 * docs: update card links * fix: use relURL for card link --- exampleSite/content/docs/guide/shortcodes/cards.md | 4 ++-- layouts/shortcodes/card.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/docs/guide/shortcodes/cards.md b/exampleSite/content/docs/guide/shortcodes/cards.md index c1536b0..3a150df 100644 --- a/exampleSite/content/docs/guide/shortcodes/cards.md +++ b/exampleSite/content/docs/guide/shortcodes/cards.md @@ -6,7 +6,7 @@ linkTitle: Cards ## Example {{< cards >}} - {{< card link="/" title="Callout" icon="warning" >}} + {{< card link="../callout" title="Callout" icon="warning" >}} {{< card link="/" title="No Icon" >}} {{< /cards >}} @@ -19,7 +19,7 @@ linkTitle: Cards ``` {{}} - {{}} + {{}} {{}} {{}} ``` diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html index 263c635..751614d 100644 --- a/layouts/shortcodes/card.html +++ b/layouts/shortcodes/card.html @@ -15,7 +15,7 @@