presentations/building-static-websites-sculpin/code/twig-3.txt

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

16 lines
326 B
Text
Raw Normal View History

2024-05-23 17:09:30 +01:00
{% set talks = site.talks|filter(talk => talk.speaker == page.name) %}
{% if talks is not empty %}
2024-08-28 13:00:00 +01:00
<section>
<h2>Talks by {{ page.name }}</h2>
2024-05-23 17:09:30 +01:00
2024-08-28 13:00:00 +01:00
<div>
<ul>
{% for talk in talks %}
<li><a href="#0">{{ talk.title }}</a></li>
{% endfor %}
</ul>
</div>
</section>
2024-05-23 17:09:30 +01:00
{% endif %}