diff --git a/src/components/cards/EducationCard.astro b/src/components/cards/EducationCard.astro
index 5cfa9bb..aa9c988 100644
--- a/src/components/cards/EducationCard.astro
+++ b/src/components/cards/EducationCard.astro
@@ -2,6 +2,7 @@
import { Icon } from 'astro-icon/components';
import Logo from '@components/ui/logos/Logo.astro';
+import { getDirectusImageURL } from '@lib/directusFunctions';
interface Props {
topic: string;
@@ -13,7 +14,8 @@ interface Props {
logoIcon?: string;
}
-const { topic, area, date, url, logoUrlLight, logoUrlDark, logoIcon } = Astro.props;
+const { topic, area, date, url, logoUrlLight, logoIcon } = Astro.props;
+const logoUrlDark = Astro.props.logoUrlDark || logoUrlLight;
---
@@ -26,8 +28,8 @@ const { topic, area, date, url, logoUrlLight, logoUrlDark, logoIcon } = Astro.pr
{logoUrlLight ? (
diff --git a/src/components/cards/LargeBlogLeftCard.astro b/src/components/cards/LargeBlogLeftCard.astro
index 1f8f57d..c8bab57 100644
--- a/src/components/cards/LargeBlogLeftCard.astro
+++ b/src/components/cards/LargeBlogLeftCard.astro
@@ -2,13 +2,14 @@
import { Icon } from 'astro-icon/components';
import Image from '@components/ui/images/Image.astro';
+import { getDirectusImageURL } from '@lib/directusFunctions';
interface Props {
title: string;
subTitle: string;
- url?: string;
- img: any;
- imgAlt: any;
+ url: string;
+ img: string;
+ imgAlt: string;
}
const { title, subTitle, url, img, imgAlt } = Astro.props;
@@ -23,7 +24,7 @@ const { title, subTitle, url, img, imgAlt } = Astro.props;
))}
diff --git a/src/components/sections/FeatureSection.astro b/src/components/sections/FeatureSection.astro
index 4060efb..e072247 100644
--- a/src/components/sections/FeatureSection.astro
+++ b/src/components/sections/FeatureSection.astro
@@ -1,8 +1,8 @@
---
import { readSingleton } from '@directus/sdk';
-import directus from '@lib/directus';
import FeaturesCard from '@components/cards/FeaturesCard.astro';
+import directus from '@lib/directus';
const global = await directus.request(readSingleton('site_global'));
---
diff --git a/src/components/sections/ProjectSection.astro b/src/components/sections/ProjectSection.astro
index 1647392..5e1f259 100644
--- a/src/components/sections/ProjectSection.astro
+++ b/src/components/sections/ProjectSection.astro
@@ -3,8 +3,8 @@ import { readItems } from '@directus/sdk';
import type { Project } from '@lib/directusTypes';
-import directus from '@lib/directus';
import HighlightsCard from '@components/cards/HighlightsCard.astro';
+import directus from '@lib/directus';
const projects = ((await directus.request(
readItems('site_projects' as any, {
diff --git a/src/components/sections/SelectedPostsSection.astro b/src/components/sections/SelectedPostsSection.astro
index 0888f34..1387b67 100644
--- a/src/components/sections/SelectedPostsSection.astro
+++ b/src/components/sections/SelectedPostsSection.astro
@@ -3,7 +3,6 @@ import type { Post } from '@lib/directusTypes';
import LargeBlogLeftCard from '@components/cards/LargeBlogLeftCard.astro';
import LargeBlogRightCard from '@components/cards/LargeBlogRightCard.astro';
-import { getDirectusImageURL } from '@lib/directusFunctions';
interface Props {
posts: Post[];
@@ -13,24 +12,24 @@ const { posts } = Astro.props;
---
- {posts.map((b, index) => index % 2 === 0 ? (
+ {posts.map((post, index) => index % 2 === 0 ? (
) : (
))}
diff --git a/src/components/sections/WeatherSection.astro b/src/components/sections/WeatherSection.astro
index cc82084..1822524 100644
--- a/src/components/sections/WeatherSection.astro
+++ b/src/components/sections/WeatherSection.astro
@@ -3,6 +3,7 @@ import WeatherCard from '@components/cards/WeatherCard.astro';
import { getFiveDayForecast } from '@support/weather';
const { latitude = "44.95", longitude = "-93.09", cityName = "St. Paul, Minnesota", timezone = "America/Chicago" } = Astro.props;
+
const { forecastDays, error } = await getFiveDayForecast(latitude, longitude, timezone);
---