Skip to content

Commit 0f90114

Browse files
committed
Preliminary support for TIL titbits.
1 parent 6e19339 commit 0f90114

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ exclude:
6868

6969
collections:
7070
- posts_category_info
71+
- til

_includes/header.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ <h1 class="site-name"><a href="{{ site.baseurl }}/">{{ site.title | escape }}</a
1313
<nav>
1414
<a href="{{ site.baseurl }}/">Blog</a>
1515
<a href="{{ site.baseurl }}/archive">Archive</a>
16+
<!--<a href="{{ site.baseurl }}/til">TIL</a>-->
1617
<a href="{{ site.baseurl }}/about">About</a>
1718
<a href="{{ site.personalurl }}" target="_blank">Me</a>
1819
</nav>

til.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: page
3+
permalink: /til/
4+
title: TIL
5+
---
6+
7+
Collection of links to random stuff I found interesting at some point.
8+
9+
<div id="TIL">
10+
{% assign til_categories = site.til | map: "category" | uniq %}
11+
{% for til_category in til_categories %}
12+
<h2 class="category-head">{{ til_category | capitalize }}</h2>
13+
<ul>
14+
{% for til in site.til %}
15+
{% if til.category == til_category %}
16+
<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>
17+
{% endif %}
18+
{% endfor %}
19+
</ul>
20+
{% endfor %}
21+
</div>
22+
23+
<!--Inspired by: https://til.simonwillison.net/-->

0 commit comments

Comments
 (0)