Move site layout macro back to layout page template
This commit is contained in:
parent
898f912004
commit
6363de3b49
|
@ -1,6 +0,0 @@
|
|||
{%- macro siteLayoutArchive(params) -%}
|
||||
<h2>{{ params.title }}</h2>
|
||||
{% for screenshot in params.screenshots %}
|
||||
<img src="/assets/layouts/{{ screenshot.imgFile }}" alt="{{ screenshot.imgAlt }}">
|
||||
{% endfor %}
|
||||
{%- endmacro -%}
|
|
@ -9,9 +9,14 @@ eleventyNavigation:
|
|||
order: 1
|
||||
---
|
||||
|
||||
{%- from "macros/components.njk" import siteLayoutArchive -%}
|
||||
{%- macro siteLayout(params) -%}
|
||||
<h2>{{ params.title }}</h2>
|
||||
{% for screenshot in params.screenshots %}
|
||||
<img src="/assets/layouts/{{ screenshot.imgFile }}" alt="{{ 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: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue