Dynamically generate themes, and search engines

This commit is contained in:
MotorTruck1221
2025-04-07 21:22:04 -06:00
parent 415af11053
commit 8af7b073fa
8 changed files with 77 additions and 10 deletions
+11 -1
View File
@@ -1,8 +1,18 @@
---
import "@styles/global.css";
import { readdir } from "node:fs";
import { join as pathJoin } from "node:path";
//import "@styles/global.css";
import { ClientRouter } from "astro:transitions";
import Loader from "@components/Loader.astro";
import Header from "@components/Header.astro";
import "@styles/global.css";
import "@styles/default.css";
readdir(pathJoin(import.meta.dirname, '..', 'styles', 'themes'), { encoding: 'utf-8' }, (err, files) => {
files.forEach(async (name) => {
await import(`../styles/themes/${name.replace('.css', '')}.css`)
});
});
---
<!doctype html>
<html lang="en">