Use a Twig extension for counting past talks
This commit is contained in:
parent
9b19d7a036
commit
6888675252
5 changed files with 270 additions and 5 deletions
|
@ -10,7 +10,7 @@ use: [talks]
|
|||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
Since September 2012, I have given {{ talkCount }} public presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.
|
||||
Since September 2012, I have given {{ get_past_talk_count(data.talks) }} public presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.
|
||||
|
||||
{% for talk in data.talks|sort((a, b) => a.events|first.date|date('U') > b.events|first.date|date('U') ? -1 : 1) %}
|
||||
<article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue