Skip to content
Permalink
Browse files
Preliminary support for TIL titbits.
  • Loading branch information
petrroll committed Jul 10, 2020
1 parent 6e19339 commit 0f90114ed5e7358f2fc778fd8c9d00dc6d19e019
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
@@ -68,3 +68,4 @@ exclude:

collections:
- posts_category_info
- til
@@ -13,6 +13,7 @@ <h1 class="site-name"><a href="{{ site.baseurl }}/">{{ site.title | escape }}</a
<nav>
<a href="{{ site.baseurl }}/">Blog</a>
<a href="{{ site.baseurl }}/archive">Archive</a>
<!--<a href="{{ site.baseurl }}/til">TIL</a>-->
<a href="{{ site.baseurl }}/about">About</a>
<a href="{{ site.personalurl }}" target="_blank">Me</a>
</nav>
@@ -0,0 +1,23 @@
---
layout: page
permalink: /til/
title: TIL
---

Collection of links to random stuff I found interesting at some point.

<div id="TIL">
{% assign til_categories = site.til | map: "category" | uniq %}
{% for til_category in til_categories %}
<h2 class="category-head">{{ til_category | capitalize }}</h2>
<ul>
{% for til in site.til %}
{% if til.category == til_category %}
<li>{{til.content | remove: '<p>' | remove: '</p>' }} - <span class="date"><time datetime="{{ til.date | date_to_xmlschema }}" itemprop="datePublished">{{ til.date | date: "%b %-d, %Y" }}</time></span></li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</div>

<!--Inspired by: https://til.simonwillison.net/-->

0 comments on commit 0f90114

Please sign in to comment.