Skip to content

Commit d425ae1

Browse files
committed
fix: import genericIcon in Layout.astro
1 parent 7bd3ce6 commit d425ae1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/layouts/Layout.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ interface Props {
1111
color?: string;
1212
}
1313
14+
import genericIcon from "../assets/icon/generic.png";
15+
1416
let { title, page, description, favicon, image, color } = Astro.props;
1517
description = description ? description : "Mod Garden: A Multi Month-Long Modding Event";
16-
favicon = favicon ? favicon : "../../assets/icon/generic.png";
17-
image = image ? image : "../../assets/icon/generic.png";
18+
favicon = favicon ? favicon : genericIcon.src;
19+
image = image ? image : genericIcon.src;
1820
color = color ? color : "#a9ffa7";
1921
---
2022

0 commit comments

Comments
 (0)