@archangel70/cosmo 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +792 -0
- package/SECURITY.md +15 -0
- package/docs/AGENT-HANDOFF.md +44 -0
- package/docs/ARCHITECTURE-INTELLIGENCE.md +64 -0
- package/docs/ARCHITECTURE.md +97 -0
- package/docs/BRAND-DISCOVERY.md +12 -0
- package/docs/BROWSER-QA.md +40 -0
- package/docs/CLAUDE-LAUNCHER.md +72 -0
- package/docs/CONTENT-QA.md +62 -0
- package/docs/DELIVERY.md +40 -0
- package/docs/DEPLOYMENT.md +119 -0
- package/docs/FIRST-PARTY-CAPABILITIES.md +54 -0
- package/docs/GENERATION.md +81 -0
- package/docs/INTEGRITY.md +75 -0
- package/docs/INTELLIGENCE-PACKS.md +122 -0
- package/docs/OPERATIONS.md +7 -0
- package/docs/PAGE-PRODUCTION.md +81 -0
- package/docs/ROADMAP.md +184 -0
- package/docs/WORKFLOWS.md +71 -0
- package/package.json +97 -0
- package/packages/cli/bin/cosmo.mjs +901 -0
- package/packages/cli/lib/adoption.mjs +72 -0
- package/packages/cli/lib/audit.mjs +145 -0
- package/packages/cli/lib/brand.mjs +60 -0
- package/packages/cli/lib/browser-audit.mjs +177 -0
- package/packages/cli/lib/claude-plugin.mjs +64 -0
- package/packages/cli/lib/content-audit.mjs +184 -0
- package/packages/cli/lib/delivery.mjs +140 -0
- package/packages/cli/lib/deployment.mjs +211 -0
- package/packages/cli/lib/doctor.mjs +42 -0
- package/packages/cli/lib/file-transfer.mjs +143 -0
- package/packages/cli/lib/generation.mjs +319 -0
- package/packages/cli/lib/handoff.mjs +109 -0
- package/packages/cli/lib/integrity.mjs +315 -0
- package/packages/cli/lib/intelligence-audit.mjs +445 -0
- package/packages/cli/lib/intelligence.mjs +331 -0
- package/packages/cli/lib/page-work.mjs +154 -0
- package/packages/cli/lib/plan.mjs +229 -0
- package/packages/cli/lib/process.mjs +45 -0
- package/packages/cli/lib/project.mjs +113 -0
- package/packages/cli/lib/research.mjs +85 -0
- package/packages/cli/lib/status.mjs +46 -0
- package/packages/cli/lib/workflow.mjs +294 -0
- package/plugins/claude-code/cosmo/.claude-plugin/plugin.json +10 -0
- package/plugins/claude-code/cosmo/README.md +25 -0
- package/plugins/claude-code/cosmo/bin/cosmo +11 -0
- package/plugins/claude-code/cosmo/skills/cosmo/SKILL.md +122 -0
- package/plugins/claude-code/cosmo/skills/cosmo-help/SKILL.md +16 -0
- package/scripts/postinstall.mjs +14 -0
- package/templates/astro-site/.cosmo/brand/discovery.json +19 -0
- package/templates/astro-site/.cosmo/brand/entity-canon.json +20 -0
- package/templates/astro-site/.cosmo/brand/voice-profile.json +16 -0
- package/templates/astro-site/.cosmo/build-plan.json +75 -0
- package/templates/astro-site/.cosmo/capabilities/registry.json +21 -0
- package/templates/astro-site/.cosmo/evidence.json +11 -0
- package/templates/astro-site/.cosmo/intelligence/selection.json +5 -0
- package/templates/astro-site/.cosmo/policies/content-integrity.json +22 -0
- package/templates/astro-site/.cosmo/project.json +10 -0
- package/templates/astro-site/.cosmo/work/pages/about/brief.json +49 -0
- package/templates/astro-site/.cosmo/work/pages/home/brief.json +51 -0
- package/templates/astro-site/.cosmo/workflows/default.json +146 -0
- package/templates/astro-site/.env.example +7 -0
- package/templates/astro-site/AGENTS.md +26 -0
- package/templates/astro-site/CLAUDE.md +28 -0
- package/templates/astro-site/DESIGN-DIRECTION.md +9 -0
- package/templates/astro-site/README.md +17 -0
- package/templates/astro-site/astro.config.mjs +16 -0
- package/templates/astro-site/cosmo.config.mjs +12 -0
- package/templates/astro-site/gitignore.template +9 -0
- package/templates/astro-site/package.json +23 -0
- package/templates/astro-site/public/favicon.svg +5 -0
- package/templates/astro-site/src/components/PageView.astro +20 -0
- package/templates/astro-site/src/components/sections/Action.astro +24 -0
- package/templates/astro-site/src/components/sections/Evidence.astro +19 -0
- package/templates/astro-site/src/components/sections/Hero.astro +41 -0
- package/templates/astro-site/src/components/sections/Problem.astro +19 -0
- package/templates/astro-site/src/components/sections/Proof.astro +15 -0
- package/templates/astro-site/src/components/sections/SectionRenderer.astro +22 -0
- package/templates/astro-site/src/components/sections/Solution.astro +19 -0
- package/templates/astro-site/src/components/seo/SeoHead.astro +41 -0
- package/templates/astro-site/src/content/pages/about.md +52 -0
- package/templates/astro-site/src/content/pages/home.md +48 -0
- package/templates/astro-site/src/content.config.ts +133 -0
- package/templates/astro-site/src/env.d.ts +1 -0
- package/templates/astro-site/src/layouts/BaseLayout.astro +57 -0
- package/templates/astro-site/src/pages/[...slug].astro +22 -0
- package/templates/astro-site/src/pages/index.astro +9 -0
- package/templates/astro-site/src/pages/robots.txt.ts +6 -0
- package/templates/astro-site/src/styles/global.css +540 -0
- package/templates/astro-site/src/styles/tokens.css +27 -0
- package/templates/astro-site/tsconfig.json +9 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
data: { eyebrow?: string; heading: string; intro: string; steps: Array<{ title: string; body: string }> };
|
|
4
|
+
}
|
|
5
|
+
const { data } = Astro.props;
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<section class="section-shell ink-section">
|
|
9
|
+
<div class="container split-heading">
|
|
10
|
+
<div>
|
|
11
|
+
{data.eyebrow && <p class="eyebrow">{data.eyebrow}</p>}
|
|
12
|
+
<h2>{data.heading}</h2>
|
|
13
|
+
</div>
|
|
14
|
+
<p class="section-intro">{data.intro}</p>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="container steps-grid">
|
|
17
|
+
{data.steps.map((step, index) => <article><span>{String(index + 1).padStart(2, '0')}</span><h3>{step.title}</h3><p>{step.body}</p></article>)}
|
|
18
|
+
</div>
|
|
19
|
+
</section>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
import cosmo from '../../../cosmo.config.mjs';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
path: string;
|
|
8
|
+
schemaType: 'WebPage' | 'AboutPage' | 'Service';
|
|
9
|
+
primaryTopic: string;
|
|
10
|
+
indexability: 'index' | 'noindex';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { title, description, path, schemaType, primaryTopic, indexability } = Astro.props;
|
|
14
|
+
const canonical = new URL(path, cosmo.site).toString();
|
|
15
|
+
const schema = {
|
|
16
|
+
'@context': 'https://schema.org',
|
|
17
|
+
'@type': schemaType,
|
|
18
|
+
name: title,
|
|
19
|
+
description,
|
|
20
|
+
url: canonical,
|
|
21
|
+
about: primaryTopic,
|
|
22
|
+
isPartOf: {
|
|
23
|
+
'@type': 'WebSite',
|
|
24
|
+
name: cosmo.brand,
|
|
25
|
+
url: cosmo.site,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
<title>{title}</title>
|
|
31
|
+
<meta name="description" content={description} />
|
|
32
|
+
<meta name="robots" content={indexability === 'noindex' ? 'noindex,follow' : 'index,follow'} />
|
|
33
|
+
<link rel="canonical" href={canonical} />
|
|
34
|
+
<meta property="og:type" content="website" />
|
|
35
|
+
<meta property="og:title" content={title} />
|
|
36
|
+
<meta property="og:description" content={description} />
|
|
37
|
+
<meta property="og:url" content={canonical} />
|
|
38
|
+
<meta name="twitter:card" content="summary_large_image" />
|
|
39
|
+
<meta name="twitter:title" content={title} />
|
|
40
|
+
<meta name="twitter:description" content={description} />
|
|
41
|
+
<script is:inline type="application/ld+json" set:html={JSON.stringify(schema)} />
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
path: /about/
|
|
3
|
+
entityId: cosmo-studio
|
|
4
|
+
pageType: standard
|
|
5
|
+
title: "About the Cosmo Studio Project"
|
|
6
|
+
description: "This private background scaffold waits for approved facts about the project, its people, experience, credentials, and supporting evidence."
|
|
7
|
+
h1: "Build trust from facts, not filler."
|
|
8
|
+
schemaType: AboutPage
|
|
9
|
+
primaryTopic: "project background and trust"
|
|
10
|
+
archetype: trust
|
|
11
|
+
indexability: noindex
|
|
12
|
+
intent:
|
|
13
|
+
primary: "Explain the project's approved background and reasons to trust it"
|
|
14
|
+
funnel: consideration
|
|
15
|
+
awareness: problem-aware
|
|
16
|
+
queryPatterns: ["project background and trust"]
|
|
17
|
+
demandConfidence: unknown
|
|
18
|
+
evidence:
|
|
19
|
+
- id: approved-brand-brief
|
|
20
|
+
claim: "The about page reflects approved, evidence-backed project background"
|
|
21
|
+
status: required
|
|
22
|
+
links:
|
|
23
|
+
parent: "/"
|
|
24
|
+
related: []
|
|
25
|
+
conversion: []
|
|
26
|
+
sections:
|
|
27
|
+
- type: hero
|
|
28
|
+
eyebrow: "Private background scaffold"
|
|
29
|
+
heading: "Build trust from facts, not filler."
|
|
30
|
+
lede: "Replace this page with the project's real origin, people, experience, and proof. Until those facts are supplied, this route remains intentionally private."
|
|
31
|
+
primaryCta:
|
|
32
|
+
label: "Return to the project overview"
|
|
33
|
+
href: "/"
|
|
34
|
+
note: "Do not convert placeholders into public claims without evidence review."
|
|
35
|
+
- type: evidence
|
|
36
|
+
eyebrow: "Evidence to gather"
|
|
37
|
+
heading: "Decide what earns belief."
|
|
38
|
+
intro: "The strongest background page uses project-owned material instead of generic credibility language."
|
|
39
|
+
items:
|
|
40
|
+
- title: "Origin"
|
|
41
|
+
body: "Document why the project exists and which parts of that story can be stated publicly."
|
|
42
|
+
- title: "People and experience"
|
|
43
|
+
body: "Name real contributors, roles, qualifications, and relevant lived experience."
|
|
44
|
+
- title: "Proof"
|
|
45
|
+
body: "Connect important claims to approved records, examples, outcomes, or attributed sources."
|
|
46
|
+
- type: action
|
|
47
|
+
heading: "Return to the project plan."
|
|
48
|
+
body: "Approve the entity facts, voice, evidence ledger, page purpose, and creative direction before generation begins."
|
|
49
|
+
primaryCta:
|
|
50
|
+
label: "Return to the homepage"
|
|
51
|
+
href: "/"
|
|
52
|
+
---
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
path: /
|
|
3
|
+
entityId: cosmo-studio
|
|
4
|
+
pageType: home
|
|
5
|
+
title: "Cosmo Studio | Project Website"
|
|
6
|
+
description: "This private starter page holds the place for approved project positioning, evidence, and an original visual direction before publication."
|
|
7
|
+
h1: "Your approved project story starts here."
|
|
8
|
+
schemaType: WebPage
|
|
9
|
+
primaryTopic: "project website overview"
|
|
10
|
+
archetype: hub
|
|
11
|
+
indexability: noindex
|
|
12
|
+
intent:
|
|
13
|
+
primary: "Introduce the project and direct visitors to its background"
|
|
14
|
+
funnel: awareness
|
|
15
|
+
awareness: unaware
|
|
16
|
+
queryPatterns: ["project website overview"]
|
|
17
|
+
demandConfidence: unknown
|
|
18
|
+
evidence:
|
|
19
|
+
- id: approved-brand-brief
|
|
20
|
+
claim: "The homepage reflects approved project positioning"
|
|
21
|
+
status: required
|
|
22
|
+
links:
|
|
23
|
+
related: ["/about/"]
|
|
24
|
+
conversion: []
|
|
25
|
+
sections:
|
|
26
|
+
- type: hero
|
|
27
|
+
eyebrow: "Private project scaffold"
|
|
28
|
+
heading: "Your approved project story starts here."
|
|
29
|
+
lede: "This copy is intentionally unfinished. Complete discovery, approve the page plan, and choose an original design direction before treating this site as publishable."
|
|
30
|
+
primaryCta:
|
|
31
|
+
label: "Review the background page"
|
|
32
|
+
href: "/about/"
|
|
33
|
+
note: "Search indexing remains disabled until claims and proof are approved."
|
|
34
|
+
- type: problem
|
|
35
|
+
eyebrow: "Before generation"
|
|
36
|
+
heading: "Replace assumptions with project evidence."
|
|
37
|
+
intro: "Use this scaffold to identify what the finished homepage must establish without inventing a business, offer, audience, or location."
|
|
38
|
+
items:
|
|
39
|
+
- "Define the real audience and the decision this page should support."
|
|
40
|
+
- "Record claims only when the project can supply appropriate proof."
|
|
41
|
+
- "Commission a distinct visual direction instead of inheriting the scaffold's appearance."
|
|
42
|
+
- type: action
|
|
43
|
+
heading: "Continue with discovery."
|
|
44
|
+
body: "The next useful artifact is an approved brand brief with positioning, audience, evidence, and design constraints."
|
|
45
|
+
primaryCta:
|
|
46
|
+
label: "Open the background scaffold"
|
|
47
|
+
href: "/about/"
|
|
48
|
+
---
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineCollection } from 'astro:content';
|
|
2
|
+
import { glob } from 'astro/loaders';
|
|
3
|
+
import { z } from 'astro/zod';
|
|
4
|
+
|
|
5
|
+
const cta = z.object({
|
|
6
|
+
label: z.string().min(1),
|
|
7
|
+
href: z.string().min(1),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const section = z.discriminatedUnion('type', [
|
|
11
|
+
z.object({
|
|
12
|
+
type: z.literal('hero'),
|
|
13
|
+
eyebrow: z.string(),
|
|
14
|
+
heading: z.string(),
|
|
15
|
+
lede: z.string(),
|
|
16
|
+
primaryCta: cta,
|
|
17
|
+
secondaryCta: cta.optional(),
|
|
18
|
+
note: z.string().optional(),
|
|
19
|
+
}),
|
|
20
|
+
z.object({
|
|
21
|
+
type: z.literal('problem'),
|
|
22
|
+
eyebrow: z.string().optional(),
|
|
23
|
+
heading: z.string(),
|
|
24
|
+
intro: z.string(),
|
|
25
|
+
items: z.array(z.string()).min(2),
|
|
26
|
+
}),
|
|
27
|
+
z.object({
|
|
28
|
+
type: z.literal('proof'),
|
|
29
|
+
heading: z.string(),
|
|
30
|
+
stats: z.array(z.object({ value: z.string(), label: z.string() })).min(2),
|
|
31
|
+
}),
|
|
32
|
+
z.object({
|
|
33
|
+
type: z.literal('solution'),
|
|
34
|
+
eyebrow: z.string().optional(),
|
|
35
|
+
heading: z.string(),
|
|
36
|
+
intro: z.string(),
|
|
37
|
+
steps: z.array(z.object({ title: z.string(), body: z.string() })).min(2),
|
|
38
|
+
}),
|
|
39
|
+
z.object({
|
|
40
|
+
type: z.literal('evidence'),
|
|
41
|
+
eyebrow: z.string().optional(),
|
|
42
|
+
heading: z.string(),
|
|
43
|
+
intro: z.string(),
|
|
44
|
+
items: z.array(z.object({ title: z.string(), body: z.string() })).min(1),
|
|
45
|
+
}),
|
|
46
|
+
z.object({
|
|
47
|
+
type: z.literal('action'),
|
|
48
|
+
heading: z.string(),
|
|
49
|
+
body: z.string(),
|
|
50
|
+
primaryCta: cta,
|
|
51
|
+
secondaryCta: cta.optional(),
|
|
52
|
+
}),
|
|
53
|
+
]);
|
|
54
|
+
|
|
55
|
+
const graphMetadata = {
|
|
56
|
+
intent: z.object({
|
|
57
|
+
primary: z.string().min(1),
|
|
58
|
+
funnel: z.enum(['awareness', 'consideration', 'decision', 'retention']),
|
|
59
|
+
awareness: z.enum(['unaware', 'problem-aware', 'solution-aware', 'product-aware', 'most-aware']),
|
|
60
|
+
queryPatterns: z.array(z.string().min(1)).min(1),
|
|
61
|
+
demandConfidence: z.enum(['observed', 'inferred', 'unknown']),
|
|
62
|
+
}),
|
|
63
|
+
evidence: z.array(z.object({
|
|
64
|
+
id: z.string().regex(/^[a-z0-9][a-z0-9-]*$/).optional(),
|
|
65
|
+
claim: z.string().min(1),
|
|
66
|
+
status: z.enum(['supplied', 'required']),
|
|
67
|
+
source: z.string().optional(),
|
|
68
|
+
provenance: z.enum(['owned', 'attributed', 'public']).optional(),
|
|
69
|
+
})),
|
|
70
|
+
links: z.object({
|
|
71
|
+
parent: z.string().startsWith('/').endsWith('/').optional(),
|
|
72
|
+
related: z.array(z.string().startsWith('/').endsWith('/')),
|
|
73
|
+
conversion: z.array(z.string().min(1)),
|
|
74
|
+
}),
|
|
75
|
+
editorial: z.object({
|
|
76
|
+
author: z.string().min(1),
|
|
77
|
+
reviewedBy: z.string().min(1),
|
|
78
|
+
publishedAt: z.string().min(1),
|
|
79
|
+
updatedAt: z.string().min(1).optional(),
|
|
80
|
+
correctionPolicy: z.string().min(1),
|
|
81
|
+
}).optional(),
|
|
82
|
+
regulatoryReview: z.object({
|
|
83
|
+
reviewedBy: z.string().min(1),
|
|
84
|
+
reviewedAt: z.string().min(1),
|
|
85
|
+
jurisdiction: z.string().min(1),
|
|
86
|
+
status: z.enum(['pending', 'approved', 'rejected']),
|
|
87
|
+
disclaimers: z.array(z.string().min(1)).optional(),
|
|
88
|
+
}).optional(),
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const pageVariant = z.discriminatedUnion('pageType', [
|
|
92
|
+
z.object({ pageType: z.literal('home') }),
|
|
93
|
+
z.object({
|
|
94
|
+
pageType: z.literal('service'),
|
|
95
|
+
service: z.object({ name: z.string().min(1), outcome: z.string().min(1) }),
|
|
96
|
+
}),
|
|
97
|
+
z.object({
|
|
98
|
+
pageType: z.literal('location'),
|
|
99
|
+
location: z.object({ name: z.string().min(1), region: z.string().min(1), serviceArea: z.string().min(1) }),
|
|
100
|
+
}),
|
|
101
|
+
z.object({
|
|
102
|
+
pageType: z.literal('guide'),
|
|
103
|
+
guide: z.object({ kind: z.string().min(1), audience: z.string().min(1) }),
|
|
104
|
+
}),
|
|
105
|
+
z.object({
|
|
106
|
+
pageType: z.literal('answer'),
|
|
107
|
+
answer: z.object({ question: z.string().min(1), shortAnswer: z.string().min(1) }),
|
|
108
|
+
}),
|
|
109
|
+
z.object({
|
|
110
|
+
pageType: z.literal('comparison'),
|
|
111
|
+
comparison: z.object({ subjectA: z.string().min(1), subjectB: z.string().min(1), verdictBasis: z.string().min(1) }),
|
|
112
|
+
}),
|
|
113
|
+
z.object({ pageType: z.literal('standard') }),
|
|
114
|
+
]);
|
|
115
|
+
|
|
116
|
+
const pages = defineCollection({
|
|
117
|
+
loader: glob({ pattern: '**/*.md', base: './src/content/pages' }),
|
|
118
|
+
schema: z.object({
|
|
119
|
+
path: z.string().startsWith('/').endsWith('/'),
|
|
120
|
+
entityId: z.string().regex(/^[a-z0-9][a-z0-9-]*$/),
|
|
121
|
+
title: z.string().min(20).max(70),
|
|
122
|
+
description: z.string().min(80).max(180),
|
|
123
|
+
h1: z.string().min(8),
|
|
124
|
+
schemaType: z.enum(['WebPage', 'AboutPage', 'Service']),
|
|
125
|
+
primaryTopic: z.string(),
|
|
126
|
+
archetype: z.enum(['hub', 'service', 'location', 'guide', 'answer', 'comparison', 'trust', 'utility']),
|
|
127
|
+
indexability: z.enum(['index', 'noindex']),
|
|
128
|
+
sections: z.array(section).min(2),
|
|
129
|
+
...graphMetadata,
|
|
130
|
+
}).and(pageVariant),
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
export const collections = { pages };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="astro/client" />
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
import cosmo from '../../cosmo.config.mjs';
|
|
3
|
+
import SeoHead from '@/components/seo/SeoHead.astro';
|
|
4
|
+
import '@/styles/global.css';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
path: string;
|
|
10
|
+
schemaType: 'WebPage' | 'AboutPage' | 'Service';
|
|
11
|
+
primaryTopic: string;
|
|
12
|
+
indexability: 'index' | 'noindex';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const { title, description, path, schemaType, primaryTopic, indexability } = Astro.props;
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
<!doctype html>
|
|
19
|
+
<html lang={cosmo.locale}>
|
|
20
|
+
<head>
|
|
21
|
+
<meta charset="UTF-8" />
|
|
22
|
+
<meta name="viewport" content="width=device-width" />
|
|
23
|
+
<meta name="generator" content={Astro.generator} />
|
|
24
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
25
|
+
<SeoHead {title} {description} {path} {schemaType} {primaryTopic} {indexability} />
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<a class="skip-link" href="#main-content">Skip to main content</a>
|
|
29
|
+
<header class="site-header">
|
|
30
|
+
<div class="container header-inner">
|
|
31
|
+
<a class="brand" href="/" aria-label={`${cosmo.brand} home`}>
|
|
32
|
+
<span class="brand-mark" aria-hidden="true">✦</span>
|
|
33
|
+
<span>{cosmo.brand}</span>
|
|
34
|
+
</a>
|
|
35
|
+
<nav aria-label="Main navigation">
|
|
36
|
+
<a href="/about/">About</a>
|
|
37
|
+
</nav>
|
|
38
|
+
</div>
|
|
39
|
+
</header>
|
|
40
|
+
<main id="main-content">
|
|
41
|
+
<slot />
|
|
42
|
+
</main>
|
|
43
|
+
<footer class="site-footer">
|
|
44
|
+
<div class="container footer-grid">
|
|
45
|
+
<div>
|
|
46
|
+
<p class="eyebrow">Private project scaffold</p>
|
|
47
|
+
<p class="footer-statement">Replace this foundation with approved strategy, evidence, and design.</p>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="footer-meta">
|
|
50
|
+
<a href={cosmo.contact.phoneHref}>{cosmo.contact.phoneDisplay}</a>
|
|
51
|
+
<a href={`mailto:${cosmo.contact.email}`}>{cosmo.contact.email}</a>
|
|
52
|
+
<span>© {new Date().getFullYear()} {cosmo.brand}</span>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</footer>
|
|
56
|
+
</body>
|
|
57
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { getCollection, type CollectionEntry } from 'astro:content';
|
|
3
|
+
import PageView from '@/components/PageView.astro';
|
|
4
|
+
|
|
5
|
+
export async function getStaticPaths() {
|
|
6
|
+
const pages = await getCollection('pages');
|
|
7
|
+
return pages
|
|
8
|
+
.filter((page) => page.id !== 'home')
|
|
9
|
+
.map((page) => ({
|
|
10
|
+
params: { slug: page.data.path.replace(/^\/+|\/+$/g, '') },
|
|
11
|
+
props: { page },
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface Props {
|
|
16
|
+
page: CollectionEntry<'pages'>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const { page } = Astro.props;
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
<PageView page={page} />
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { APIRoute } from 'astro';
|
|
2
|
+
import cosmo from '../../cosmo.config.mjs';
|
|
3
|
+
|
|
4
|
+
export const GET: APIRoute = () => new Response(`User-agent: *\nAllow: /\nSitemap: ${cosmo.site}/sitemap-index.xml\n`, {
|
|
5
|
+
headers: { 'Content-Type': 'text/plain; charset=utf-8' },
|
|
6
|
+
});
|