Make talk count dynamic
This commit is contained in:
parent
fc3335be83
commit
b1f7ea09e0
|
@ -1,11 +1,17 @@
|
||||||
---
|
---
|
||||||
title: Talks and Workshops
|
title: Talks and Workshops
|
||||||
talk_count: 94
|
|
||||||
use:
|
use:
|
||||||
- talks
|
- talks
|
||||||
---
|
---
|
||||||
|
|
||||||
Starting with my first talk in September 2012, I have given {{ page.talk_count }} 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.
|
{% set talkCount = 0 %}
|
||||||
|
{% for talk in data.talks %}
|
||||||
|
{% for event in talk.events if 'today'|date('U') >= event.date|date('U') %}
|
||||||
|
{% set talkCount = talkCount + 1 %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
Starting with my first talk in 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.
|
||||||
|
|
||||||
{% for talk in data.talks|sort((a, b) => a.events|last.date|date('U') > b.events|last.date|date('U') ? -1 : 1) %}
|
{% for talk in data.talks|sort((a, b) => a.events|last.date|date('U') > b.events|last.date|date('U') ? -1 : 1) %}
|
||||||
<article>
|
<article>
|
||||||
|
|
Loading…
Reference in a new issue