{% include top.html %} {% include header.html %}

{{ page.title }}

{% assign playlistsCounter = 0 %} {% assign adventuresCounter = 0 %} {% assign codeCounter = 0 %} {% assign notesCounter = 0 %} {% assign teachingCounter = 0 %} {% assign epicurean = 0 %} {% assign playlistThumbs = '' %} {% for post in site.posts reversed %} {% capture year %}{{post.date | date: "%Y"}}{% endcapture %} {% capture pageYear %}{{ page.title }}{% endcapture %} {% if year == pageYear %} {% if post.categories[0] == 'playlists' %}{% assign playlistsCounter = playlistsCounter | plus:1 %}{% endif %} {% if post.categories[0] == 'adventures' %}{% assign adventuresCounter = adventuresCounter | plus:1 %}{% endif %} {% if post.categories[0] == 'code' %}{% assign codeCounter = codeCounter | plus:1 %}{% endif %} {% if post.categories[0] == 'notes' %}{% assign notesCounter = notesCounter | plus:1 %}{% endif %} {% if post.categories[0] == 'epicurean' %}{% assign epicureanCounter = epicureanCounter | plus:1 %}{% endif %} {% if post.categories[0] == 'teaching' %}{% assign teachingCounter = teachingCounter | plus:1 %}{% endif %} {% endif %} {% endfor %}

{% if adventuresCounter > 0 %}I had {{ adventuresCounter }} adventure{% if adventuresCounter > 1 %}s{% endif %}.{% endif %} {% if codeCounter > 0 %}I wrote about code {{ codeCounter }} time{% if codeCounter > 1 %}s{% endif %}.{% endif %} {% if teachingCounter > 0 %}I taught {{ teachingCounter }} class{% if teachingCounter > 1 %}es{% endif %}.{% endif %} {% if notesCounter > 0 %}I wrote {{notesCounter}} note{% if notesCounter > 1 %}s{% endif %}.{% endif %} {% if epicureanCounter > 0 %}I made {{epicureanCounter}} new treat{% if epicureanCounter > 1 %}s{% endif %}.{% endif %} {% if playlistsCounter > 0 %}I made {{ playlistsCounter }} playlist{% if playlistsCounter > 1 %}s{% endif %}.{% endif %} {% for post in site.data.life %}{% capture year %}{{ post.date | date: "%Y" }}{% endcapture %}{% capture pageYear %}{{ page.title }}{% endcapture %}{% if year == pageYear %}{{post.note}}{% endif %}{% endfor %}

{% for post in site.posts reversed %} {% capture year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture pageYear %}{{ page.title }}{% endcapture %} {% if year == pageYear %} {% endif %} {% endfor %} {% for post in site.data.other-places %} {% capture year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture pageYear %}{{ page.title }}{% endcapture %} {% if year == pageYear %} {% include icons/instagram.svg %} {% endif %} {% endfor %} {% for post in site.data.life %} {% capture year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture pageYear %}{{ page.title }}{% endcapture %} {% if year == pageYear %}{% assign icon = post.icon | prepend: 'icons/' | append: '.svg' %} {% include {{icon}} %} {% endif %} {% endfor %}
{% for data in site.data.top-ten %}{% if data.year == page.title %} {% if data.tripit %}

Travel

{% for tripit in data.tripit %}

I went on {{tripit.trips}} trips over {{tripit.days}} days that spanned {{tripit.cities}} cities and {{tripit.countries}} countries. In total, I traveled {{tripit.distance}} miles.

{% endfor %} {% endif %} {% if data.topnine %}

Instagram top 9

{% for img in data.topnine %}{% include icons/instagram.svg %}{% endfor %}
{% endif %} {% if data.favorites %}

Favorites

{% endif %} {% if data.albums.size > 0 %}

Most listened albums

    {% for album in data.albums %}
  1. {{album}}
  2. {% endfor %}
{% endif %}

Most listened tracks

{% assign img = page.title | append: '.png' %} {% include img.html src=img alt="most listened tracks album art" %} {% if data.spotify %} {% include icons/music.svg %} Listen on Spotify{% endif %}
    {% for track in data.tracks %}
  1. {{track}}
  2. {% endfor %}
{% endif %}{% endfor %}
{% assign lastYear = pageYear | minus: 1 %} {% assign nextYear = pageYear | plus: 1 %} {% if site.years contains lastYear %}{% include icons/angle-left.svg %} {{ lastYear }}{% endif %} {% if site.years contains nextYear %} {{ nextYear }} {% include icons/angle-right.svg %}{% endif %}
{% include footer.html %} {% include end.html %}