-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtils.html
More file actions
44 lines (37 loc) · 1.36 KB
/
tils.html
File metadata and controls
44 lines (37 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
layout: default
title: TIL
permalink: /tils/
---
<div class="home">
{%- if site.posts.size > 0 -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
<ul class="post-list">
{%- for post in site.posts -%}
{% if post.categories contains "til" %}
<header class="post-header">
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
<p class="post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{{ post.date | date: date_format }}
</time>
{%- if page.author -%}
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
{%- endif -%}</p>
</header>
<div class="post-content e-content" itemprop="articleBody">
{{ post.content }}
</div>
{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
{%- endif -%}
{%- endfor -%}
</ul>
{%- endif -%}
</div>