diff --git a/src/_includes/macros/components.njk b/src/_includes/macros/components.njk deleted file mode 100644 index 02d6bbd4..00000000 --- a/src/_includes/macros/components.njk +++ /dev/null @@ -1,6 +0,0 @@ -{%- macro siteLayoutArchive(params) -%} -

{{ params.title }}

- {% for screenshot in params.screenshots %} - {{ screenshot.imgAlt }} - {% endfor %} -{%- endmacro -%} \ No newline at end of file diff --git a/src/changelogs/pages/layouts.njk b/src/changelogs/pages/layouts.njk index c729afea..ec2fd22e 100644 --- a/src/changelogs/pages/layouts.njk +++ b/src/changelogs/pages/layouts.njk @@ -9,9 +9,14 @@ eleventyNavigation: order: 1 --- -{%- from "macros/components.njk" import siteLayoutArchive -%} +{%- macro siteLayout(params) -%} +

{{ params.title }}

+ {% for screenshot in params.screenshots %} + {{ screenshot.imgAlt }} + {% endfor %} +{%- endmacro -%} -{{ siteLayoutArchive({ +{{ siteLayout({ title: "11 September 2023 Blog Layout", screenshots: [ { @@ -21,7 +26,7 @@ eleventyNavigation: ] }) }} -{{ siteLayoutArchive({ +{{ siteLayout({ title: "23 June 2023", screenshots: [ { @@ -31,7 +36,7 @@ eleventyNavigation: ] }) }} -{{ siteLayoutArchive({ +{{ siteLayout({ title: "26 January 2023", screenshots: [ { @@ -41,7 +46,7 @@ eleventyNavigation: ] }) }} -{{ siteLayoutArchive({ +{{ siteLayout({ title: "11 September 2022 (Site Launch)", screenshots: [ {