Dynamically generate themes, and search engines
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user