{% for year in years %}
{% for solution in year %} {% if loop.first %}

{{ solution.day.year }}

{% endif %}

Day {{ format!("{:02}", solution.day.day)|random_emoji }}

{% let part_1_correct %} {% if solution.part_1 == solution.part_1_expected %} {% let part_1_correct = true %} {% else %} {% let part_1_correct = false %} {% endif %} {% if solution.part_1.contains("\n") %}
Click to expand.
{{ solution.part_1 }}
{% else %}
{{ solution.part_1 }}
{% endif %} {% let part_2_correct %} {% if solution.part_2 == solution.part_2_expected %} {% let part_2_correct = true %} {% else %} {% let part_2_correct = false %} {% endif %} {% if solution.part_2.contains("\n") %}
Click to expand.
{{ solution.part_2 }}
{% else %}
{{ solution.part_2 }}
{% endif %}
{% endfor %}
{% endfor %}