diff --git a/src/pages/index.astro b/src/pages/index.astro index 680828a..579b4d9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,17 +3,8 @@ import { getEmDashEntry } from "emdash"; import Base from "../layouts/Base.astro"; const { entry: homepage } = await getEmDashEntry("homepage", "main"); -const { hero_headline, hero_subtitle, hero_button_text, hero_button_url, hero_image, - features_section_title, features_section_subtitle, - feature_1_title, feature_1_description, feature_1_icon, - feature_2_title, feature_2_description, feature_2_icon, - feature_3_title, feature_3_description, feature_3_icon, - feature_4_title, feature_4_description, feature_4_icon, - feature_5_title, feature_5_description, feature_5_icon, - feature_6_title, feature_6_description, feature_6_icon, - comparison_title, comparison_subtitle, - cta_title, cta_subtitle, cta_button_text, cta_button_url, - footer_tagline, footer_about_text, footer_copyright } = homepage.data; +Astro.cache.set(homepage.cacheHint); +const d = homepage.data; ---
@@ -21,21 +12,21 @@ const { hero_headline, hero_subtitle, hero_button_text, hero_button_url, hero_im
Open Source • 10k+ Stars
-

- {hero_headline.split('\n').map((line: string) => <>{line}
)} +

+ {d.hero_headline.split('\n').map((line: string) => <>{line}
)}

-

- {hero_subtitle} +

+ {d.hero_subtitle}

@@ -141,8 +132,8 @@ const { hero_headline, hero_subtitle, hero_button_text, hero_button_url, hero_im
-

{comparison_title}

-

{comparison_subtitle}

+

{d.comparison_title}

+

{d.comparison_subtitle}