Replace macro with function in layout archive
This commit is contained in:
parent
46fda6a195
commit
cd43ecfbb6
@ -8,12 +8,12 @@ eleventyNavigation:
|
|||||||
order: 1
|
order: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
{%- macro siteLayout(params) -%}
|
{{ function siteLayout(params) }}
|
||||||
## {{ params.title }}
|
## {{ params.title }}
|
||||||
{% for screenshot in params.screenshots %}
|
{{ for screenshot of params.screenshots }}
|
||||||
<img src="/assets/layouts/{{ screenshot.imgFile }}" alt="{{ screenshot.imgAlt }}" loading="lazy">
|
<img src="/assets/layouts/{{ screenshot.imgFile }}" alt="{{ screenshot.imgAlt }}" loading="lazy">
|
||||||
{% endfor %}
|
{{ /for }}
|
||||||
{%- endmacro -%}
|
{{ /function }}
|
||||||
|
|
||||||
{{ siteLayout({
|
{{ siteLayout({
|
||||||
title: "20 April 2024",
|
title: "20 April 2024",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user