From a3fec52c02f6a5ff85042bece5547c7b11d99e91 Mon Sep 17 00:00:00 2001 From: Mircea-Pavel ANTON Date: Wed, 18 Jan 2023 09:06:38 +0000 Subject: [PATCH 1/8] Remove old, unused file --- layouts/shortcodes/sliderOLD.html | 46 ------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 layouts/shortcodes/sliderOLD.html diff --git a/layouts/shortcodes/sliderOLD.html b/layouts/shortcodes/sliderOLD.html deleted file mode 100644 index a5631619..00000000 --- a/layouts/shortcodes/sliderOLD.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ $images := .Page.Resources.Match (.Get "pattern") }} -{{ $id := .Get "id" }} - - - - - -
- -
- - {{ range $images }} -
-
- -
-
- {{ end }} - -
- -
- - -
-
-
- - \ No newline at end of file From 4a34e5076a4b3f0c6a60947a744d5811343df58f Mon Sep 17 00:00:00 2001 From: Mircea-Pavel ANTON Date: Wed, 18 Jan 2023 09:08:40 +0000 Subject: [PATCH 2/8] Remove params table --- exampleSite/content/docs/shortcodes/index.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/exampleSite/content/docs/shortcodes/index.md b/exampleSite/content/docs/shortcodes/index.md index 6f5fb790..b3d8bb71 100644 --- a/exampleSite/content/docs/shortcodes/index.md +++ b/exampleSite/content/docs/shortcodes/index.md @@ -94,12 +94,6 @@ Call to action `carousel` is used to showcase multiple images in an interactive and visually appealing way. This allows a user to slide through multiple images while only taking up the vertical space of a single one. All images are displayed using the full width of the parent component and using a ratio of `16:9`. - -| Parameter | Description | -| --------- | --------------------------------------------------------- | -| `images` | This shortcode receives how many image paths as you want. | - - **Example:** ```md From ffa0ece61873c5ff2b8c855c1d811c10366980ee Mon Sep 17 00:00:00 2001 From: Mircea-Pavel ANTON Date: Wed, 18 Jan 2023 09:08:49 +0000 Subject: [PATCH 3/8] Add dynamically generated ID --- layouts/shortcodes/carousel.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html index 91b333b2..9ce77a46 100644 --- a/layouts/shortcodes/carousel.html +++ b/layouts/shortcodes/carousel.html @@ -1,10 +1,13 @@ -