From 015ebabcaba340752634e0476f2cc442dd6b23a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Mon, 13 May 2024 22:58:20 +0100 Subject: [PATCH] fixed https://github.com/nunocoracao/blowfish/issues/1404 --- exampleSite/content/docs/shortcodes/index.md | 5 +++++ layouts/shortcodes/timeline.html | 2 +- layouts/shortcodes/timelineItem.html | 6 ++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/docs/shortcodes/index.md b/exampleSite/content/docs/shortcodes/index.md index 9fdbcc80..051ca825 100644 --- a/exampleSite/content/docs/shortcodes/index.md +++ b/exampleSite/content/docs/shortcodes/index.md @@ -671,7 +671,12 @@ With other shortcodes {{< /gallery >}} {{}} +{{< timelineItem icon="code" header="Another Awesome Header">}} +{{< github repo="nunocoracao/blowfish" >}} + + +{{}} {{}} diff --git a/layouts/shortcodes/timeline.html b/layouts/shortcodes/timeline.html index 27ee729a..efaf922c 100644 --- a/layouts/shortcodes/timeline.html +++ b/layouts/shortcodes/timeline.html @@ -1,3 +1,3 @@ -
    +
      {{- .Inner -}}
    \ No newline at end of file diff --git a/layouts/shortcodes/timelineItem.html b/layouts/shortcodes/timelineItem.html index 8297b6c1..294b4111 100644 --- a/layouts/shortcodes/timelineItem.html +++ b/layouts/shortcodes/timelineItem.html @@ -3,7 +3,7 @@ {{ $badge := .Get "badge" }} {{ $subheader := .Get "subheader" }} {{ $text := .Get "text" }} -
  1. +
  2. {{ partial "icon" $icon }} @@ -26,7 +26,9 @@ {{ $subheader }} {{ end }} -

    {{- .Inner -}}

    +
    + {{- .Inner -}} +