generated from nhcarrigan/template
fix: filter null key
This commit is contained in:
parent
23869ce0cf
commit
acff4ea44e
@ -4,7 +4,7 @@ import { join } from "node:path";
|
|||||||
const fileReq = await fetch('https://cdn.nhcarrigan.com?prefix=koikatsu');
|
const fileReq = await fetch('https://cdn.nhcarrigan.com?prefix=koikatsu');
|
||||||
const files = await fileReq.text();
|
const files = await fileReq.text();
|
||||||
const keys = files.matchAll(/<Key>(.*?)<\/Key>/g);
|
const keys = files.matchAll(/<Key>(.*?)<\/Key>/g);
|
||||||
const keyNames = [...keys].map((key) => key[1]?.replace("koikatsu/", ""));
|
const keyNames = [...keys].map((key) => key[1]?.replace("koikatsu/", "")).filter(key => key);
|
||||||
const keyHtml = keyNames.map((key) => `<div
|
const keyHtml = keyNames.map((key) => `<div
|
||||||
style="
|
style="
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
@ -14,20 +14,6 @@
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
border: 2px solid var(--foreground);
|
border: 2px solid var(--foreground);
|
||||||
"
|
"
|
||||||
>
|
|
||||||
<a href="https://cdn.nhcarrigan.com/koikatsu/" target="_blank">
|
|
||||||
<img
|
|
||||||
style="height: 250px; max-width: 250px; object-fit: contain"
|
|
||||||
src="https://cdn.nhcarrigan.com/koikatsu/"
|
|
||||||
alt="Digital art of Naomi."
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</div><div
|
|
||||||
style="
|
|
||||||
height: 300px;
|
|
||||||
width: 300px;
|
|
||||||
border: 2px solid var(--foreground);
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<a href="https://cdn.nhcarrigan.com/koikatsu/CharaStudio-2025-04-06-13-43-21-Render.png" target="_blank">
|
<a href="https://cdn.nhcarrigan.com/koikatsu/CharaStudio-2025-04-06-13-43-21-Render.png" target="_blank">
|
||||||
<img
|
<img
|
||||||
|
Loading…
x
Reference in New Issue
Block a user