Link primary demo site to its journal
This commit is contained in:
@@ -18,6 +18,7 @@ for (const { file, html } of pages) {
|
|||||||
|
|
||||||
const home = await readFile(resolve(root, 'index.html'), 'utf8');
|
const home = await readFile(resolve(root, 'index.html'), 'utf8');
|
||||||
if (key === 'www') {
|
if (key === 'www') {
|
||||||
|
for (const { file, html } of pages) if (!html.includes('href="https://blog.3031023.xyz/"')) throw new Error(`${file} is missing the Happy Tails Journal link.`);
|
||||||
for (const question of ['What services do you offer?', 'How do I book a visit?', 'How far ahead should I book pet care?', 'Can you accommodate special routines?']) if (!home.includes(question)) throw new Error(`Primary FAQ Markdown entry is missing: ${question}.`);
|
for (const question of ['What services do you offer?', 'How do I book a visit?', 'How far ahead should I book pet care?', 'Can you accommodate special routines?']) if (!home.includes(question)) throw new Error(`Primary FAQ Markdown entry is missing: ${question}.`);
|
||||||
if (home.includes('What information should I bring to a meet and greet?')) throw new Error('Draft FAQ entry appeared in the homepage.');
|
if (home.includes('What information should I bring to a meet and greet?')) throw new Error('Draft FAQ entry appeared in the homepage.');
|
||||||
const services = await readFile(resolve(root, 'services/index.html'), 'utf8');
|
const services = await readFile(resolve(root, 'services/index.html'), 'utf8');
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"theme": { "accent": "#f59e0b", "ink": "#102a43", "surface": "#f7f5ef" },
|
"theme": { "accent": "#f59e0b", "ink": "#102a43", "surface": "#f7f5ef" },
|
||||||
"branding": { "wordmark": "Happy Tails", "mark": "HT", "logo": null },
|
"branding": { "wordmark": "Happy Tails", "mark": "HT", "logo": null },
|
||||||
"seo": { "socialImage": "/images/hero-dogs.jpg", "locality": "Springfield, IL" },
|
"seo": { "socialImage": "/images/hero-dogs.jpg", "locality": "Springfield, IL" },
|
||||||
"nav": [{ "label": "Home", "href": "/" }, { "label": "About", "href": "/about" }, { "label": "Services", "href": "/services" }, { "label": "Contact", "href": "/contact" }],
|
"nav": [{ "label": "Home", "href": "/" }, { "label": "About", "href": "/about" }, { "label": "Services", "href": "/services" }, { "label": "Journal", "href": "https://blog.3031023.xyz/" }, { "label": "Contact", "href": "/contact" }],
|
||||||
"contact": { "email": "hello@3031023.xyz", "phone": "(555) 742-9283", "phoneHref": "+15557429283", "address": "742 Evergreen Terrace, Springfield, IL 62704", "hours": "Mon–Fri · 7am–6pm CST", "showMap": true },
|
"contact": { "email": "hello@3031023.xyz", "phone": "(555) 742-9283", "phoneHref": "+15557429283", "address": "742 Evergreen Terrace, Springfield, IL 62704", "hours": "Mon–Fri · 7am–6pm CST", "showMap": true },
|
||||||
"hero": { "eyebrow": "Springfield's neighborhood dog care", "headline": "Care that feels like family.", "copy": "Thoughtful walks, gentle grooming, and cozy overnight stays for the dog you love most.", "image": "/images/hero-dogs.jpg", "imageAlt": "Two happy dogs playing outdoors", "cta": "Meet the pack", "ctaHref": "/contact" },
|
"hero": { "eyebrow": "Springfield's neighborhood dog care", "headline": "Care that feels like family.", "copy": "Thoughtful walks, gentle grooming, and cozy overnight stays for the dog you love most.", "image": "/images/hero-dogs.jpg", "imageAlt": "Two happy dogs playing outdoors", "cta": "Meet the pack", "ctaHref": "/contact" },
|
||||||
"features": [{ "icon": "◎", "title": "Personalized care", "description": "Every visit follows your dog's pace, routine, and personality." }, { "icon": "↗", "title": "Updates you can trust", "description": "Photos and thoughtful notes keep you close to every adventure." }, { "icon": "✦", "title": "Experienced hands", "description": "A small, caring team with safety and comfort at the center." }],
|
"features": [{ "icon": "◎", "title": "Personalized care", "description": "Every visit follows your dog's pace, routine, and personality." }, { "icon": "↗", "title": "Updates you can trust", "description": "Photos and thoughtful notes keep you close to every adventure." }, { "icon": "✦", "title": "Experienced hands", "description": "A small, caring team with safety and comfort at the center." }],
|
||||||
|
|||||||
Reference in New Issue
Block a user