diff --git a/slashes.njk b/slashes.njk index 387ce52..207b081 100644 --- a/slashes.njk +++ b/slashes.njk @@ -157,6 +157,14 @@ eleventyImport:
All posts chronologically
+Today I Learned — small things learnt day to day
++ A collection of concise write-ups on small things I’ve learnt day to day. + ({{ tilPosts.length }} post{% if tilPosts.length != 1 %}s{% endif %}) +
+ + {% if tilPosts.length > 0 %} ++ + · + {{ postType | replace("s", "") }} + {% if post.data.category %} + · + {% set cats = [] %} + {% if post.data.category is string %} + {% set cats = [post.data.category] %} + {% else %} + {% set cats = post.data.category %} + {% endif %} + {% for cat in cats %} + {% if cat != "til" %} + #{{ cat }}{% if not loop.last %} {% endif %} + {% endif %} + {% endfor %} + {% endif %} +
++ {{ post.templateContent | striptags | truncate(300) }} +
+ +
+ No TIL posts yet. Tag any post with category: til and it will appear here.
+