Use type import and update page load event handling.
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import {CollectionEntry} from "astro:content";
|
import type {CollectionEntry} from "astro:content";
|
||||||
import {l} from "../util/util";
|
import {l} from "../util/util";
|
||||||
import {astroI18n} from "astro-i18n";
|
import {astroI18n} from "astro-i18n";
|
||||||
import {Image} from "astro:assets";
|
import {Image} from "astro:assets";
|
||||||
|
|||||||
@ -164,7 +164,7 @@ const ogImage = await getImage({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mountEvent();
|
document.addEventListener("astro:page-load", mountEvent);
|
||||||
</script>
|
</script>
|
||||||
</article>
|
</article>
|
||||||
</PageLayout>
|
</PageLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user