From 68ed10b8803e324a490e68f15c898bcdda9b186e Mon Sep 17 00:00:00 2001 From: Jules Date: Thu, 7 Mar 2024 18:18:40 -0800 Subject: [PATCH] #61 removes card-grid block --- views/blocks/card-grid/card-grid-example.twig | 34 ------------------- views/blocks/card-grid/card-grid.html.twig | 12 ------- views/blocks/card-grid/card-grid.twig | 21 ------------ 3 files changed, 67 deletions(-) delete mode 100644 views/blocks/card-grid/card-grid-example.twig delete mode 100644 views/blocks/card-grid/card-grid.html.twig delete mode 100644 views/blocks/card-grid/card-grid.twig diff --git a/views/blocks/card-grid/card-grid-example.twig b/views/blocks/card-grid/card-grid-example.twig deleted file mode 100644 index fc4eca5f9..000000000 --- a/views/blocks/card-grid/card-grid-example.twig +++ /dev/null @@ -1,34 +0,0 @@ - - -{% set cards = [ - { - featured_image: { - src: site.theme.uri ~ "/assets/images/default-dark.png", - alt: "Sample Image" - }, - tag: 'Tag', - title: 'Sample card one', - author: 'Jane Smith', - date: '20 Jan 2022', - excerpt: 'Lorem ipsum.', - link: { title: 'Explore Campaign', url: '/' }, - }, - { - featured_image: { - src: site.theme.uri ~ "/assets/images/default-dark.png", - alt: "Sample Image" - }, - tag: 'Another Tag', - title: 'Sample card two', - author: 'Jane Smith', - date: '20 Jan 2022', - excerpt: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec placera ipsum ac auctor ornare, nunc ligula scelerisque eros.', - link: { title: 'Donate', url: '/' }, - } -] %} - -{% include 'blocks/card-grid/card-grid.html.twig' with { - columns: columns ?: 2, - cards: cards -} %} - diff --git a/views/blocks/card-grid/card-grid.html.twig b/views/blocks/card-grid/card-grid.html.twig deleted file mode 100644 index fb0831849..000000000 --- a/views/blocks/card-grid/card-grid.html.twig +++ /dev/null @@ -1,12 +0,0 @@ -{# Card Grid - -#} - -{% set colorway = colorway == 'brand' ? 'ts-bg-dk' : 'ts-bg-lt' %} - -{% include 'components/card-grid.twig' with { - card_view_mode: "card-lg", - block_class: "article-page ", - style: "row", - columns: "3" -} %} diff --git a/views/blocks/card-grid/card-grid.twig b/views/blocks/card-grid/card-grid.twig deleted file mode 100644 index 04896ed81..000000000 --- a/views/blocks/card-grid/card-grid.twig +++ /dev/null @@ -1,21 +0,0 @@ -{# - Title: Card Grid - Description: A block that displays a grid of cards with an optional title and description above. - Category: theme - Icon: columns - SupportsAlign: false - Example: {} -#} - -{# Get the Block Posts by the grid_cards property #} -{% set block_card_posts = make_cards_for_grid(fields.grid_cards) %} - -{% include 'blocks/card-grid/card-grid.html.twig' with { - cards: block_card_posts, - colorway: fields.block_colorway, - header: fields.title, - eyebrow: fields.eyebrow, - text: fields.description, - primary_btn: fields.primary_cta, - secondary_btn: fields.secondary_cta -} %}