Split talks page into partials
This commit is contained in:
parent
5e83b92091
commit
e0256a0bca
3 changed files with 26 additions and 20 deletions
9
source/_partials/talks/past.html.twig
Normal file
9
source/_partials/talks/past.html.twig
Normal file
|
@ -0,0 +1,9 @@
|
|||
<div class="spaced-y-4">
|
||||
<h2 class="font-bold">Previous Talks</h2>
|
||||
|
||||
<div class="spaced-y-10">
|
||||
{% for talk in talks|reverse %}
|
||||
{% include 'talks/talk' %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
11
source/_partials/talks/upcoming.html.twig
Normal file
11
source/_partials/talks/upcoming.html.twig
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="spaced-y-4">
|
||||
<h2 class="font-bold">Upcoming Talks</h2>
|
||||
|
||||
<div class="spaced-y-10">
|
||||
{% for talk in talks %}
|
||||
{% include 'talks/talk' %}
|
||||
{% else %}
|
||||
<p>Nothing scheduled at the moment.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue