Muut
1
How can I show a collection inside a page?
This is my .md page
title: 'Quote Archive ’
published: true
metadata:
keywords: ‘home’
taxonomy:
category:
- main
tag:
- ‘home’
menu: ‘Home’
slug: home
process:
markdown: false
twig: true
routable: true
cache_enable: true
visible: true
content:
items: ‘@root’
{% for p in page.collection %}
<h2> {{ p.title }} </h2>
{{ p.summary }}
{% endfor %}
this is the result:
how can I not show the collection code before the collection?
Muut
2
I really can’t tell with your paste of the .md
page, you should paste it between triple backticks.
Muut
3
sorry for the bad paste. My problem is:
If I have a page writed this way:
(savedd home.en.md)
title: 'Home'
published: true
metadata:
keywords: 'home'
taxonomy:
category: - main
tag: - 'home'
menu: 'Home'
slug: home
process:
twig: true
routable: true
cache_enable: true
visible: true
content:
items: @root
order:
by: date
dir: desc
limit: 10
pagination: true
and this flat text after “This Are all our Pages:”
how and where do I have to add the twig text?
{% for p in page.collection %}
<h3> {{ p.title }} </h3>
{{ p.summary }}
{% endfor %}
---