summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElis Eriksson <spelis@spelis.li>2026-07-04 22:04:31 +0200
committerElis Eriksson <spelis@spelis.li>2026-07-04 22:04:31 +0200
commitc102b125743523ddac625f5ca9ee90da246cc646 (patch)
tree3dbeba4fac581658baa6f44c4753ff448591bfc8
parent5144b142f670a864cbbab438a3dc31efceedb3fd (diff)
downloadspelis-web-c102b125743523ddac625f5ca9ee90da246cc646.tar
spelis-web-c102b125743523ddac625f5ca9ee90da246cc646.tar.gz
spelis-web-c102b125743523ddac625f5ca9ee90da246cc646.tar.bz2
spelis-web-c102b125743523ddac625f5ca9ee90da246cc646.tar.lz
spelis-web-c102b125743523ddac625f5ca9ee90da246cc646.tar.xz
spelis-web-c102b125743523ddac625f5ca9ee90da246cc646.tar.zst
spelis-web-c102b125743523ddac625f5ca9ee90da246cc646.zip
more blog related modifications
-rw-r--r--_layouts/post.njk7
-rw-r--r--content/blog.md10
-rw-r--r--content/blog/11ty.md1
-rw-r--r--content/blog/cbin.md1
-rw-r--r--content/blog/pipedals.md1
-rw-r--r--eleventy.config.mjs7
-rw-r--r--package.json1
7 files changed, 23 insertions, 5 deletions
diff --git a/_layouts/post.njk b/_layouts/post.njk
index 3eccafa..335a6c3 100644
--- a/_layouts/post.njk
+++ b/_layouts/post.njk
@@ -6,10 +6,11 @@
{% block content %}
<h1>{{ title }}</h1>
- <div class="post-info">
- <small>{{ page.date | date }}</small>
- </div>
<div>
{{ content | safe }}
</div>
+ <hr>
+ <div class="post-info">
+ <small>{{ page.date | date }}</small>
+ </div>
{% endblock %}
diff --git a/content/blog.md b/content/blog.md
new file mode 100644
index 0000000..016afa9
--- /dev/null
+++ b/content/blog.md
@@ -0,0 +1,10 @@
+---
+title: Blog
+layout: page
+---
+<div> {% for post in collections.blog | reverse %}
+ <a href="{{ post.url }}" class="blogpost">
+ <h3>{{ post.data.title }}</h3>
+ <small>{{ post.date | date }}<span style="float:right;">{{ post.url }}</span></small>
+ </a><br> {% endfor %}
+</div>
diff --git a/content/blog/11ty.md b/content/blog/11ty.md
index 2f60b34..5e837a7 100644
--- a/content/blog/11ty.md
+++ b/content/blog/11ty.md
@@ -2,7 +2,6 @@
title: This website now uses 11ty!
keywords: new 11ty
date: 2026-03-14
-modified: 2026-05-31
---
Thanks to my friend Jan Palma for making the website! (check him out <a href="https://janpalma.cz/" target="_blank">here</a>)
diff --git a/content/blog/cbin.md b/content/blog/cbin.md
index 3dbd1a3..e31767d 100644
--- a/content/blog/cbin.md
+++ b/content/blog/cbin.md
@@ -1,6 +1,7 @@
---
title: Made a Pastebin site :P
keywords: pastebin bin paste cbin
+date: 2026-05-07
---
These past few days I've spent my time working on a project called CBin, along with my friend Jan Palma (who made the frontend). It is a pastebin server written in C (if you couldn't tell)
diff --git a/content/blog/pipedals.md b/content/blog/pipedals.md
index 3136e3d..ab07957 100644
--- a/content/blog/pipedals.md
+++ b/content/blog/pipedals.md
@@ -1,6 +1,7 @@
---
title: Dead simple digital guitar pedals in C
keywords: guitar pedal c simple
+date: 2026-05-25
---
There's something I hate about the entire "professional digital audio workstation ecosystem", it's the complexity.
diff --git a/eleventy.config.mjs b/eleventy.config.mjs
index a1b5ece..58fad4e 100644
--- a/eleventy.config.mjs
+++ b/eleventy.config.mjs
@@ -8,6 +8,7 @@ import fs from "fs"
import { OgImage } from 'eleventy-plugin-og-image/og-image';
import path from "path";
import sitemap from "@quasibit/eleventy-plugin-sitemap";
+import { DateTime } from "luxon";
export class CustomOgImage extends OgImage {
async shortcodeOutput() {
@@ -21,7 +22,11 @@ export default function(eleventyConfig) {
const fullPath = path.join("./", filePath);
return fs.readFileSync(fullPath, "utf-8");
});
- eleventyConfig.addNunjucksFilter("date", (dateObj, formatString = 'MM.dd.yyyy') => format(dateObj, formatString))
+ eleventyConfig.addNunjucksFilter("date", (dateObj, formatString) => {
+ return DateTime.fromJSDate(dateObj).toFormat(
+ formatString || "cccc, LLLL dd yyyy"
+ );
+ });
eleventyConfig.addCollection("navItems", function (collectionsApi) {
return collectionsApi.getAll().filter(i => {
diff --git a/package.json b/package.json
index 154f287..9ecb91b 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"@quasibit/eleventy-plugin-sitemap": "^2.2.0",
"date-fns": "^4.1.0",
"eleventy-plugin-og-image": "^4.2.1",
+ "luxon": "^3.7.2",
"sass": "^1.97.3"
}
}