Upgrade to lume 2.1.0 #8

Merged
tudor merged 1 commits from lume-2.1.0 into master 2024-03-10 18:38:02 +02:00
4 changed files with 1026 additions and 544 deletions

View File

@ -8,8 +8,9 @@ import postcss from "lume/plugins/postcss.ts";
import sitemap from "lume/plugins/sitemap.ts";
import feed from "lume/plugins/feed.ts";
import lightningCss from "lume/plugins/lightningcss.ts";
import robots from "lume/plugins/robots.ts";
import localeEnGb from "npm:date-fns/locale/en-GB/index.js";
import { enGB } from "npm:date-fns/locale/en-GB";
import rehypePrism from "npm:rehype-prism-plus/all";
@ -36,7 +37,7 @@ site.copy("static");
site.use(date({
locales: {
"en-GB": localeEnGb,
"en-GB": enGB,
}
}));
site.use(feed({
@ -67,6 +68,11 @@ if (isRelease) {
site.use(sitemap({
query: "",
}));
} else {
site.use(robots({
allow: [],
disallow: "*",
}));
}
site.use(lightningCss());

View File

@ -14,6 +14,6 @@
"jsxImportSource": "npm:preact"
},
"imports": {
"lume/": "https://deno.land/x/lume@v2.0.3/"
"lume/": "https://deno.land/x/lume@v2.1.0/"
}
}

1547
deno.lock

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +0,0 @@
---
layout: ""
url: /robots.txt
---
User-agent: *
{{- if release }}
Allow: /
{{- else }}
Disallow: /
{{- /if }}