From 0ef73ad0b9ae62e4a26e405388150aeec2af7e6d Mon Sep 17 00:00:00 2001 From: Matt Sherman Date: Tue, 19 Nov 2024 15:30:39 -0500 Subject: [PATCH] Load base css files separating instead of importing them and duplicating data transferred --- src/_components/BaseStylesLinks.tsx | 7 +++++++ src/_includes/layouts/home-page-layout.tsx | 1 + src/_includes/layouts/layout.tsx | 1 + src/_includes/layouts/post-layout.tsx | 1 + src/_includes/layouts/resume-layout.tsx | 1 + src/resume/styles.css | 5 ----- src/styles.css | 5 ----- 7 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 src/_components/BaseStylesLinks.tsx diff --git a/src/_components/BaseStylesLinks.tsx b/src/_components/BaseStylesLinks.tsx new file mode 100644 index 0000000..52a7a2e --- /dev/null +++ b/src/_components/BaseStylesLinks.tsx @@ -0,0 +1,7 @@ +export default (data: Lume.Data, _helpers: Lume.Helpers) => ( + <> + + + + +); diff --git a/src/_includes/layouts/home-page-layout.tsx b/src/_includes/layouts/home-page-layout.tsx index f7feb92..90221ab 100644 --- a/src/_includes/layouts/home-page-layout.tsx +++ b/src/_includes/layouts/home-page-layout.tsx @@ -3,6 +3,7 @@ export default (data: Lume.Data, _helpers: Lume.Helpers) => ( + ( + { rel="stylesheet" href={`/${data.cacheBusterVersion}/prism-code-themes/okaidia.css`} /> + ( + nav { padding: 1rem;