fix: use slug 'main' for homepage singleton entry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,7 @@ const menu = await getMenu("primary");
|
||||
// Fetch homepage for footer text
|
||||
let homepage;
|
||||
try {
|
||||
const result = await getEmDashEntry("homepage", "homepage-main");
|
||||
const result = await getEmDashEntry("homepage", "main");
|
||||
homepage = result.entry;
|
||||
} catch {
|
||||
homepage = null;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { getEmDashEntry } from "emdash";
|
||||
import Base from "../layouts/Base.astro";
|
||||
|
||||
const { entry: homepage } = await getEmDashEntry("homepage", "homepage-main");
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user