Update for BrumPHP
This commit is contained in:
parent
cb4b396577
commit
6f53f8c026
12 changed files with 551 additions and 71 deletions
18
src/building-static-websites-sculpin/code/twig-3.txt
Normal file
18
src/building-static-websites-sculpin/code/twig-3.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% set talks = site.talks|filter(talk => talk.speaker == page.name) %}
|
||||
|
||||
{% if talks is not empty %}
|
||||
<section class="mt-10">
|
||||
<h2 class="text-2xl font-bold">Talks
|
||||
<span class="sr-only"> by {{ page.name }}</span></h2>
|
||||
|
||||
<div class="mt-6">
|
||||
<ul class="pl-4 list-disc">
|
||||
{% for talk in talks %}
|
||||
<li>
|
||||
<a class="hover:underline" href="#0">{{ talk.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue