Skip to content

Commit

Permalink
Remove unused styles prop from Layout component and simplify CSS imports
Browse files Browse the repository at this point in the history
  • Loading branch information
matttrent committed Nov 2, 2024
1 parent 4584e72 commit 32012fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import "../css/custom.css";
interface Props {
title: string;
styles?: any[]; // Array of imported style modules
}
const { title, styles = [] } = Astro.props;
const { title } = Astro.props;
---

<!doctype html>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/cv.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import Layout from "../layouts/Layout.astro";
import cvStyles from "../css/cv.css";
import "../css/cv.css";
import ArtifactsList from "../components/ArtifactsList.astro";
import CVList from "../components/CVList.astro";
Expand Down Expand Up @@ -169,7 +169,7 @@ const talksAndMisc = [
];
---

<Layout title={pageTitle} styles={[cvStyles]}>
<Layout title={pageTitle}>
<h1>{pageTitle}</h1>
<p>
[my-intials]@matttrent.com<br />
Expand Down

0 comments on commit 32012fc

Please sign in to comment.