Skip to content

Commit 9625b65

Browse files
authored
h
1 parent 9388977 commit 9625b65

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/pages/index.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ const metadata = {
1717
title: 'Scope Dataset',
1818
ignoreTitleTemplate: true,
1919
};
20+
21+
if (isDark) {
22+
logo_path = '~/assets/images/scope_dark_small.png';
23+
} else {
24+
logo_path = '~/assets/images/scope_bright_small.png';
25+
}
26+
2027
---
2128

2229
<Layout metadata={metadata}>
@@ -31,8 +38,7 @@ const metadata = {
3138

3239
<!-- Hero Widget ******************* -->
3340
<Hero3
34-
image={{ src: '~/assets/images/scope_dark_small.png', alt: 'scope-logo', width:'1284', height:'295'}}
35-
>
41+
image={{ src: logo_path, alt: 'scope-logo', width:'1284', height:'295'}}
3642
</Hero3>
3743

3844
<Hero3

0 commit comments

Comments
 (0)