From 4da92b87f2efd6115eae2a1dfbb04061379f9faa Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Thu, 16 Jul 2020 22:28:02 +0200 Subject: [PATCH] removed post-list component --- src/_includes/layouts/home.njk | 1 - .../partials/components/post-list.njk | 21 ------------------- src/scss/components/_post-list.scss | 17 --------------- src/scss/global.scss | 1 - 4 files changed, 40 deletions(-) delete mode 100644 src/_includes/partials/components/post-list.njk delete mode 100644 src/scss/components/_post-list.scss diff --git a/src/_includes/layouts/home.njk b/src/_includes/layouts/home.njk index 3b19cb0..1e33d91 100644 --- a/src/_includes/layouts/home.njk +++ b/src/_includes/layouts/home.njk @@ -10,7 +10,6 @@
{% include "partials/components/intro.njk" %} {% include "partials/components/posts-list-home.njk" %} - {% include "partials/components/post-list.njk" %} {% include "partials/components/presentation.njk" %} {% include "partials/components/customers.njk" %} {% include "partials/components/contact-form.njk" %} diff --git a/src/_includes/partials/components/post-list.njk b/src/_includes/partials/components/post-list.njk deleted file mode 100644 index e28fae9..0000000 --- a/src/_includes/partials/components/post-list.njk +++ /dev/null @@ -1,21 +0,0 @@ -{% if postListItems.length %} -
-
-

{{ postListHeading }}

-
    - {% for item in postListItems %} - {% if item.date.getTime() <= global.now %} -
  1. -

    - {{ item.data.title }} -

    -

    - -

    -
  2. - {% endif %} - {% endfor %} -
-
-
-{% endif %} diff --git a/src/scss/components/_post-list.scss b/src/scss/components/_post-list.scss deleted file mode 100644 index 9a22648..0000000 --- a/src/scss/components/_post-list.scss +++ /dev/null @@ -1,17 +0,0 @@ -.post-list { - &__item { - --flow-space: #{get-size(700)}; - } - - &__link { - &, - &:visited { - color: var(--color-theme-primary); - text-decoration: none; - } - - &:hover { - text-decoration: underline; - } - } -} diff --git a/src/scss/global.scss b/src/scss/global.scss index 6ef5dd9..464e3e7 100644 --- a/src/scss/global.scss +++ b/src/scss/global.scss @@ -66,7 +66,6 @@ img { @import 'components/nav'; @import 'components/posts'; @import 'components/post'; -@import 'components/post-list'; @import 'components/member'; @import 'components/member-list'; @import 'components/posts-list';