-
Notifications
You must be signed in to change notification settings - Fork 32
/
index.html
43 lines (43 loc) · 1.42 KB
/
index.html
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
---
title: Archives
layout: layouts/pagealign.liquid
enableWebmentions: true
eleventyImport:
collections: ["blog-post"]
---
<filter-container oninit>
<div class="flex">
<div class="flex-grow">
<a href="/search/">Search</a>
· <a href="/web/best-of/">Popular Posts 🔥</a>
</div>
<form class="filter-posts-form">
<span data-filter-results="post/posts" aria-live="polite">{{ collections.posts | size }} posts</span> 
<label>
<span class="sr-only">Filter</span>
<select data-filter-key="category">
<option value="">Show all posts</option>
<option value="writing">Only Writing</option>
<option value="speaking">Only Speaking</option>
<option value="eleventy">Only Eleventy</option>
<option value="project">Only Projects</option>
<option value="web-components">Only Web Components</option>
<option value="jamstack">Only Jamstack</option>
<option value="web-fonts">Only Web Fonts</option>
</select>
</label>
</form>
</div>
<ol id="main-posts-list" class="posts h-feed">
{% comment %}
liquidjs doesn’t do hoisting the same, so we have to hoist these loop variables ourselves.
{% endcomment %}
{% assign year = "" %}
{% assign currentyear = "" %}
{% assign currentyearpostcount = 0 %}
{% assign listItems = collections.posts %}
{% for post in collections.posts %}
{% include "post-list-entry.html", hfeed: true %}
{% endfor %}
</ol>
</filter-container>