summary refs log tree commit diff
path: root/src/blog.njk
diff options
context:
space:
mode:
Diffstat (limited to 'src/blog.njk')
-rw-r--r--src/blog.njk14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/blog.njk b/src/blog.njk
index 4d8dfab..87cf12a 100644
--- a/src/blog.njk
+++ b/src/blog.njk
@@ -1,5 +1,6 @@
 ---
 layout = "base.njk"
+extraHeadContent = "<link rel=alternate type=application/atom+xml title=Atom href=feed.xml>"
 
 [pagination]
 data = "collections.post"
@@ -11,6 +12,18 @@ reverse = true
 key = "Blog"
 order = 1
 ---
+<style>
+.feed-icon {
+	display: block;
+	float: right;
+	height: 1em;
+	width: 1em;
+	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=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>
@@ -22,3 +35,4 @@ order = 1
 	{%- endif -%}
 </article>
 {% endfor %}
+