presentations/building-static-websites-sculpin/slides/code/front-matter-on-pages.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
324 B
Text
Raw Normal View History

2024-05-23 17:09:30 +01:00
---
...
testimonials:
2024-08-28 13:00:00 +01:00
- { name: ..., role: ..., text: ..., url: ... }
- { name: ..., role: ..., text: ..., url: ... }
- { name: ..., role: ..., text: ..., url: ... }
2024-05-23 17:09:30 +01:00
---
{% for testimonial in page.testimonials %}
2024-08-28 13:00:00 +01:00
<h2>{{ testimonial.name }} - {{ testimonial.role }}</h2>
<p>{{ testimonial.text }}</p>
2024-05-23 17:09:30 +01:00
{% endfor %}