This commit is contained in:
2024-10-09 18:58:21 +01:00
parent 97b7dc06e9
commit b03053e795

View File

@@ -12,10 +12,7 @@ const posts = (await getBlogs()).sort(
);
const current = new Date();
const currentMonth = current.getMonth();
const currentYear =
`${currentMonth === 0 ? current.getUTCFullYear() - 1 : current.getUTCFullYear() - 2}`.substring(
2,
);
const currentYear = `${current.getUTCFullYear() - 1}`.substring(2);
---
<!doctype html>