Bump dependencies in response to vulnerability alerts
[web/blog] / years.njk
index 16d4afb7dcf7dd1cc53ed5e34e6bcfdf56ba43f7..d5769684f30446b4a9fa8bf0989ebde4ab5bd1b9 100644 (file)
--- a/years.njk
+++ b/years.njk
@@ -6,6 +6,8 @@ pagination:
     alias: year
 permalink: /{{ year }}/index.html
 title: Archive
+eleventyImport:
+  collections: ["years"]
 ---
 
 <h2>{{ year }}</h2>
@@ -15,7 +17,9 @@ title: Archive
     <li>
         <h2><a class="c-sun" href="{{ post.url }}">{{ post.data.title }}</a></h2>
         <i class="dim">{{ post.date | date("YYYY-MM-DD") }}</i>
-        <p>{{ post.data.summary | markdown | safe }}</p>
+        {% if post.data.summary %}
+            <p>{{ post.data.summary | markdown | safe }}</p>
+        {% endif %}
     </li>
 {% endfor %}
 </ul>