fix: use slug 'main' for homepage singleton entry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -487,7 +487,7 @@
|
|||||||
"homepage": [
|
"homepage": [
|
||||||
{
|
{
|
||||||
"id": "homepage-main",
|
"id": "homepage-main",
|
||||||
"slug": "homepage-main",
|
"slug": "main",
|
||||||
"status": "published",
|
"status": "published",
|
||||||
"data": {
|
"data": {
|
||||||
"hero_headline": "The CMS that\nruns on your server",
|
"hero_headline": "The CMS that\nruns on your server",
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const menu = await getMenu("primary");
|
|||||||
// Fetch homepage for footer text
|
// Fetch homepage for footer text
|
||||||
let homepage;
|
let homepage;
|
||||||
try {
|
try {
|
||||||
const result = await getEmDashEntry("homepage", "homepage-main");
|
const result = await getEmDashEntry("homepage", "main");
|
||||||
homepage = result.entry;
|
homepage = result.entry;
|
||||||
} catch {
|
} catch {
|
||||||
homepage = null;
|
homepage = null;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { getEmDashEntry } from "emdash";
|
import { getEmDashEntry } from "emdash";
|
||||||
import Base from "../layouts/Base.astro";
|
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,
|
const { hero_headline, hero_subtitle, hero_button_text, hero_button_url, hero_image,
|
||||||
features_section_title, features_section_subtitle,
|
features_section_title, features_section_subtitle,
|
||||||
feature_1_title, feature_1_description, feature_1_icon,
|
feature_1_title, feature_1_description, feature_1_icon,
|
||||||
|
|||||||
Reference in New Issue
Block a user