From 460f46dd0c0481a1b5dfcf69b3ce338a1d7df7e8 Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Thu, 20 Feb 2020 10:34:04 -0500 Subject: [PATCH] ISTWCMS-3598: removing article component --- .../04-components/article/_article.scss | 12 ------ .../04-components/article/article.md | 14 ------- .../04-components/article/article.twig | 39 ------------------- .../04-components/article/article.yml | 5 --- 4 files changed, 70 deletions(-) delete mode 100644 source/_patterns/04-components/article/_article.scss delete mode 100644 source/_patterns/04-components/article/article.md delete mode 100644 source/_patterns/04-components/article/article.twig delete mode 100644 source/_patterns/04-components/article/article.yml diff --git a/source/_patterns/04-components/article/_article.scss b/source/_patterns/04-components/article/_article.scss deleted file mode 100644 index 9a74712c..00000000 --- a/source/_patterns/04-components/article/_article.scss +++ /dev/null @@ -1,12 +0,0 @@ -// @file -// Styles for Article. - -// .article {} - -.article__footer { - display: flex; - flex-direction: row; - flex-wrap: wrap; - margin-bottom: rem(gesso-spacing(sm)); -} - diff --git a/source/_patterns/04-components/article/article.md b/source/_patterns/04-components/article/article.md deleted file mode 100644 index a9786df4..00000000 --- a/source/_patterns/04-components/article/article.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -el: .article -title: Article ---- - -__Variables:__ -* article_page_title: [string] Title of the article. -* has_footer: [boolean] Whether to display article footer. -* content: [object] Content of the article. - -__Blocks:__ -* title: Twig block for title. -* footer: Twig block for footer. -* main: Twig block for main content. diff --git a/source/_patterns/04-components/article/article.twig b/source/_patterns/04-components/article/article.twig deleted file mode 100644 index dcd1c43e..00000000 --- a/source/_patterns/04-components/article/article.twig +++ /dev/null @@ -1,39 +0,0 @@ -{% set additional_attributes = { - 'class': ['article'] -} %} - -<article {{ add_attributes(additional_attributes) }}> - {% block title %} - {% include '@components/page-title/page-title.twig' with { - 'page_title': article_page_title - } %} - {% endblock %} - - {% if has_footer %} - <footer class="article__footer"> - {% block footer %} - {% set article_date %} - {% include '@components/date/date.twig' with { - 'format': 'medium-date' - } %} - {% endset %} - {% set article_author %} - {% include '@components/author/author.twig' with { - 'author': 'Author Name' - } %} - {% endset %} - {% include '@components/list/list.twig' with { - 'modifier_classes': 'list--pipeline', - 'list': [ - { 'text': article_date }, - { 'text': article_author } - ] - } %} - {% endblock %} - </footer> - {% endif %} - - {% block main %} - {{ content }} - {% endblock %} -</article> diff --git a/source/_patterns/04-components/article/article.yml b/source/_patterns/04-components/article/article.yml deleted file mode 100644 index 6f823433..00000000 --- a/source/_patterns/04-components/article/article.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -article_page_title: 'Article Title' -has_footer: true -content: |- - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam et accumsan augue. Morbi non laoreet lorem. Ut mauris erat, sollicitudin ac hendrerit tincidunt, iaculis eget purus. Nullam pharetra eu nibh auctor ultrices. Phasellus non aliquam felis. Mauris varius varius commodo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed est sapien, venenatis quis urna et, vulputate porta metus. Duis scelerisque sollicitudin nunc, vel finibus lorem ultricies id. In hac habitasse platea dictumst. Pellentesque eget turpis blandit augue sagittis iaculis nec at felis. Vestibulum gravida sapien ut aliquam rutrum. Suspendisse leo neque, varius id consectetur in, aliquam quis magna. Phasellus vel felis eu libero feugiat accumsan. Maecenas aliquet ex vel nisi fermentum, ac congue nibh porttitor.</p> -- GitLab