Repository navigation
Expand file tree
/
Copy pathblog.html
More file actions
34 lines (31 loc) · 1.33 KB
/
Copy pathblog.html
File metadata and controls
34 lines (31 loc) · 1.33 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
---
title: Blog
permalink: /blog/
layout: page
excerpt: Notes on Android, Kotlin Multiplatform, and software engineering.
comments: false
---
<div class="search">
<label for="search-input" class="search-icon">{% include icon.html name="search" px=18 %}<span class="sr-only">Search</span></label>
<input type="search" id="search-input" class="search-input" placeholder="Search articles" autocomplete="off" />
</div>
<ul id="search-results" class="search-results"></ul>
{%- if site.posts.size == 0 -%}
<p class="empty-state">No posts yet. Check back soon.</p>
{%- endif -%}
{%- for post in site.posts -%}
{%- capture current_year -%}{{ post.date | date: "%Y" }}{%- endcapture -%}
{%- unless current_year == previous_year -%}
{%- unless forloop.first -%}</ul>{%- endunless -%}
<h2 class="year-heading">{{ current_year }}</h2>
<ul class="post-list post-list--ghost ghost">
{%- assign previous_year = current_year -%}
{%- endunless -%}
<li class="post-list-item">
<a class="post-list-link" href="{{ post.url }}">
<span class="post-list-title">{% if post.emoticon %}<span class="emoticon">{{ post.emoticon }}</span>{% endif %}{{ post.title | escape }}</span>
<time class="post-list-date" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %d" }}</time>
</a>
</li>
{%- if forloop.last -%}</ul>{%- endif -%}
{%- endfor -%}