summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/assets/sw_cache.11tydata.js22
-rw-r--r--src/assets/sw_cache.njk4
-rw-r--r--src/blog.njk25
3 files changed, 13 insertions, 38 deletions
diff --git a/src/assets/sw_cache.11tydata.js b/src/assets/sw_cache.11tydata.js
deleted file mode 100644
index 377753f..0000000
--- a/src/assets/sw_cache.11tydata.js
+++ /dev/null
@@ -1,22 +0,0 @@
-const crypto = require('crypto')
-
-module.exports = () => {
- return {
- sw_cache: {
- offline: "/offline.html",
- default: [
- "/index.css",
- "/prism.css",
- "/index.js",
- "/favicon.svg",
- "/offline.html",
- "/"
- ],
- },
- eleventyComputed: {
- sw_cache: {
- store: data => `${data.env.CF_PAGES_BRANCH || "default"}-${data.env.CF_PAGES_COMMIT_SHA || crypto.randomUUID()}`
- }
- }
- }
-} \ No newline at end of file
diff --git a/src/assets/sw_cache.njk b/src/assets/sw_cache.njk
deleted file mode 100644
index 52a0e58..0000000
--- a/src/assets/sw_cache.njk
+++ /dev/null
@@ -1,4 +0,0 @@
----
-permalink: /cache.json
----
-{{ sw_cache | tojson | safe }}
diff --git a/src/blog.njk b/src/blog.njk
index f4b9ad5..532d977 100644
--- a/src/blog.njk
+++ b/src/blog.njk
@@ -4,15 +4,16 @@ title: Blog
tags:
- navigator
---
-{% for post in collections.posts %}
-<article>
- <h1>
- <a href="{{ post.url | url }}">{{ post.data.title }}</a>
- </h1>
- <small>
- <p>{{ metadata.author.name }} - {{ post.data.date | datefmt }}<p>
- </small>
- <p>{{ post.data.description }}<p>
-</article>
-{% endfor %}
-
+<div role="feed" aria-busy="false">
+ {% for post in collections.posts %}
+ <article aria-posinset="{{ loop.index }}" aria-setsize="{{ loop.size }}">
+ <h1>
+ <a href="{{ post.url | url }}">{{ post.data.title }}</a>
+ </h1>
+ <small>
+ <p>{{ metadata.author.name }} - {{ post.data.date | datefmt }}<p>
+ </small>
+ <p>{{ post.data.description }}</p>
+ </article>
+ {% endfor %}
+</div> \ No newline at end of file