blob: b0f12dbb11c1358fdba7ab69b62655df90448d7f (
plain) (
blame)
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
|
---
layout = "base.njk"
extraHeadContent = "<link rel=alternate type=application/atom+xml title=Atom href=/blog/feed.xml>"
title = "~/blog"
[pagination]
data = "collections.post"
alias = "posts"
size = 20
reverse = true
[eleventyNavigation]
key = "Blog"
order = 1
---
<style>
.feed-icon {
display: block;
float: right;
height: 1.5em;
width: 1.5em;
background: url('/img/feed-icon.svg') center/contain, var(--fg);
background-blend-mode: luminosity;
mask: url('/img/feed-icon.svg') 0 0/100% 100%;
}
</style>
<a href=/blog/feed.xml alt="Atom feed" class=feed-icon></a>
{% for post in posts %}
<article class=blogpost>
<h2><a href="{{ post.url | url }}">{{ post.data.title }}</a></h2>
<time datetime="{{ post.date | rfc3339_datetime }}" title="{{ post.date | rfc3339_datetime}}">
{{ post.date | local_date }}
</time>
{%- if post.data.page.excerpt -%}
<p>{{ post.data.page.excerpt | md | safe }}
{%- endif -%}
</article>
{% endfor %}
|