forked from contentful/11ty-contentful-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpages.liquid
27 lines (25 loc) · 829 Bytes
/
pages.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
pagination:
data: contentful-page
size: 1
alias: page
addAllPagesToCollections: true
permalink: "{{ page.slug | slug }}/"
tags: "page"
layout: layout.liquid
eleventyComputed:
title: "{{ page.title}}"
---
{%- for component in page.components -%}
{% if component.sys.contentType.sys.id == "contentBlock" %}
{% contentBlock component %}
{% elsif component.sys.contentType.sys.id == "featuretteBlock" %}
{% featuretteBlock component %}
{% elsif component.sys.contentType.sys.id == "cardBlock" %}
{% cardBlock component %}
{% elsif component.sys.contentType.sys.id == "bannerBlock" %}
{% bannerBlock component %}
{% elsif component.sys.contentType.sys.id == "footerBlock" %}
{% footerBlock component %}
{% endif %}
{% endfor %}