galley-cms 0.0.0-stage → 0.1.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/README.md +76 -2
- package/bin/galley.js +29 -0
- package/dist/LICENSE +202 -0
- package/dist/NOTICE +19 -0
- package/dist/galley.mjs +168872 -0
- package/dist/overlay.js +60 -0
- package/dist/starters/README.md +257 -0
- package/dist/starters/astro-editorial/CONTENT-GUIDE.md +218 -0
- package/dist/starters/astro-editorial/LICENSE +21 -0
- package/dist/starters/astro-editorial/README.md +375 -0
- package/dist/starters/astro-editorial/astro.config.ts +50 -0
- package/dist/starters/astro-editorial/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-editorial/galley/photography/LOG.md +77 -0
- package/dist/starters/astro-editorial/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-editorial/galley/photography/shots.json +721 -0
- package/dist/starters/astro-editorial/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/night.webp +0 -0
- package/dist/starters/astro-editorial/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/film.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/form.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/look.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/sections/story.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/about.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/about.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-editorial/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/contact.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-editorial/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-editorial/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-editorial/galley/templates/story.md +49 -0
- package/dist/starters/astro-editorial/galley/templates/story.webp +0 -0
- package/dist/starters/astro-editorial/galley.config.json +334 -0
- package/dist/starters/astro-editorial/gitignore +26 -0
- package/dist/starters/astro-editorial/netlify.toml +6 -0
- package/dist/starters/astro-editorial/package.json +46 -0
- package/dist/starters/astro-editorial/public/favicon.svg +5 -0
- package/dist/starters/astro-editorial/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-editorial/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-editorial/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-editorial/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-editorial/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-editorial/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-editorial/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-editorial/public/images/share.jpg +0 -0
- package/dist/starters/astro-editorial/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-editorial/scripts/gallery/gallery.astro +77 -0
- package/dist/starters/astro-editorial/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-editorial/scripts/gallery/sections.md +171 -0
- package/dist/starters/astro-editorial/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-editorial/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-editorial/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-editorial/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-editorial/scripts/starter-notice.json +9 -0
- package/dist/starters/astro-editorial/src/components/Actions.astro +31 -0
- package/dist/starters/astro-editorial/src/components/Footer.astro +195 -0
- package/dist/starters/astro-editorial/src/components/Header.astro +340 -0
- package/dist/starters/astro-editorial/src/components/Icon.astro +39 -0
- package/dist/starters/astro-editorial/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-editorial/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-editorial/src/components/Media.astro +37 -0
- package/dist/starters/astro-editorial/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-editorial/src/components/PieceList.astro +70 -0
- package/dist/starters/astro-editorial/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-editorial/src/components/PostList.astro +103 -0
- package/dist/starters/astro-editorial/src/components/Section.astro +47 -0
- package/dist/starters/astro-editorial/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-editorial/src/components/Sections.astro +81 -0
- package/dist/starters/astro-editorial/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-editorial/src/components/Tags.astro +68 -0
- package/dist/starters/astro-editorial/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-editorial/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-editorial/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-editorial/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-editorial/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-editorial/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-editorial/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-editorial/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-editorial/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-editorial/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-editorial/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-editorial/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-editorial/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-editorial/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-editorial/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-editorial/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-editorial/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-editorial/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-editorial/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-editorial/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-editorial/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-editorial/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-editorial/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-editorial/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-editorial/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-editorial/src/content/pages/404.md +14 -0
- package/dist/starters/astro-editorial/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-editorial/src/content/pages/collections.md +15 -0
- package/dist/starters/astro-editorial/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-editorial/src/content/pages/index.md +144 -0
- package/dist/starters/astro-editorial/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-editorial/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-editorial/src/content/pages/stockists.md +32 -0
- package/dist/starters/astro-editorial/src/content.config.ts +464 -0
- package/dist/starters/astro-editorial/src/data/navigation.json +60 -0
- package/dist/starters/astro-editorial/src/data/scripts.json +29 -0
- package/dist/starters/astro-editorial/src/data/site.json +86 -0
- package/dist/starters/astro-editorial/src/data/stockists.json +81 -0
- package/dist/starters/astro-editorial/src/data/visibility.json +30 -0
- package/dist/starters/astro-editorial/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-editorial/src/galley/catalog.js +42 -0
- package/dist/starters/astro-editorial/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-editorial/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-editorial/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-editorial/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-editorial/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-editorial/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-editorial/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-editorial/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-editorial/src/galley/components/index.js +5 -0
- package/dist/starters/astro-editorial/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-editorial/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-editorial/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-editorial/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-editorial/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-editorial/src/galley/integration.js +21 -0
- package/dist/starters/astro-editorial/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-editorial/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-editorial/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-editorial/src/galley/schema.js +338 -0
- package/dist/starters/astro-editorial/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-editorial/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-editorial/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-editorial/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-editorial/src/galley/settings.json +18 -0
- package/dist/starters/astro-editorial/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-editorial/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-editorial/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-editorial/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-editorial/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-editorial/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-editorial/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-editorial/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-editorial/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-editorial/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-editorial/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-editorial/src/layouts/Base.astro +98 -0
- package/dist/starters/astro-editorial/src/lib/journal.ts +45 -0
- package/dist/starters/astro-editorial/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-editorial/src/lib/site.ts +181 -0
- package/dist/starters/astro-editorial/src/pages/404.astro +13 -0
- package/dist/starters/astro-editorial/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-editorial/src/pages/collections/[slug].astro +23 -0
- package/dist/starters/astro-editorial/src/pages/collections/index.astro +66 -0
- package/dist/starters/astro-editorial/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-editorial/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-editorial/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-editorial/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-editorial/src/styles/global.css +661 -0
- package/dist/starters/astro-editorial/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-editorial/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-editorial/src/styles/tokens.css +181 -0
- package/dist/starters/astro-editorial/starter.json +52 -0
- package/dist/starters/astro-editorial/tsconfig.json +8 -0
- package/dist/starters/astro-saas/CONTENT-GUIDE.md +273 -0
- package/dist/starters/astro-saas/LICENSE +21 -0
- package/dist/starters/astro-saas/README.md +365 -0
- package/dist/starters/astro-saas/astro.config.ts +77 -0
- package/dist/starters/astro-saas/galley/previews/home.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/meridian.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/night-shift.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-saas/galley/previews/signal.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/awards.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/case-studies.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/changelog.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/comparison.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/feature-tabs.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/features.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-form.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero-split.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/integrations.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/metrics.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing-table.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/screenshot.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/security.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/team.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-saas/galley/sections/use-cases.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/about.md +50 -0
- package/dist/starters/astro-saas/galley/templates/about.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/contact.md +30 -0
- package/dist/starters/astro-saas/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.md +47 -0
- package/dist/starters/astro-saas/galley/templates/customer-story.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/landing.md +76 -0
- package/dist/starters/astro-saas/galley/templates/landing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/pricing.md +77 -0
- package/dist/starters/astro-saas/galley/templates/pricing.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/product.md +69 -0
- package/dist/starters/astro-saas/galley/templates/product.webp +0 -0
- package/dist/starters/astro-saas/galley/templates/solution.md +71 -0
- package/dist/starters/astro-saas/galley/templates/solution.webp +0 -0
- package/dist/starters/astro-saas/galley.config.json +286 -0
- package/dist/starters/astro-saas/gitignore +22 -0
- package/dist/starters/astro-saas/netlify.toml +6 -0
- package/dist/starters/astro-saas/package.json +45 -0
- package/dist/starters/astro-saas/public/favicon.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/easiest-setup.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/facilities-review.svg +1 -0
- package/dist/starters/astro-saas/public/images/awards/support-index.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/audit-schedule.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/certificate-register.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/four-numbers.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/fourteen-depots.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/offline-first.svg +1 -0
- package/dist/starters/astro-saas/public/images/blog/work-order-fields.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/corrin-foods.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/halbeck-retail.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/linmore-schools.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/ostrell-logistics.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/pellow-hotels.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/tamsett-facilities.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/vantry-health.svg +1 -0
- package/dist/starters/astro-saas/public/images/logos/wendmoor-senior-living.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/anika-thorvald.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/calum-ashby.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/dana-whitcombe.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/ellie-strand.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/grace-achterberg.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/hana-lindqvist.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/joel-marchetti.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/marcus-oyelaran.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/rosa-ferrante.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/sunmi-hollis.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/teodor-rask.svg +1 -0
- package/dist/starters/astro-saas/public/images/people/tobi-merriden.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/dashboard.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/evidence.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/inspection.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/planner.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/reports.svg +1 -0
- package/dist/starters/astro-saas/public/images/product/work-orders.svg +1 -0
- package/dist/starters/astro-saas/public/images/share.png +0 -0
- package/dist/starters/astro-saas/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-saas/scripts/gallery/gallery.astro +114 -0
- package/dist/starters/astro-saas/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-saas/scripts/gallery/sections.md +362 -0
- package/dist/starters/astro-saas/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-saas/src/components/Actions.astro +30 -0
- package/dist/starters/astro-saas/src/components/Announcement.astro +51 -0
- package/dist/starters/astro-saas/src/components/Checklist.astro +55 -0
- package/dist/starters/astro-saas/src/components/CustomerCard.astro +147 -0
- package/dist/starters/astro-saas/src/components/CustomerStory.astro +343 -0
- package/dist/starters/astro-saas/src/components/Footer.astro +204 -0
- package/dist/starters/astro-saas/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-saas/src/components/Frame.astro +88 -0
- package/dist/starters/astro-saas/src/components/Header.astro +489 -0
- package/dist/starters/astro-saas/src/components/Icon.astro +83 -0
- package/dist/starters/astro-saas/src/components/Logo.astro +40 -0
- package/dist/starters/astro-saas/src/components/Mark.astro +54 -0
- package/dist/starters/astro-saas/src/components/Media.astro +54 -0
- package/dist/starters/astro-saas/src/components/PageEntry.astro +65 -0
- package/dist/starters/astro-saas/src/components/PostCard.astro +99 -0
- package/dist/starters/astro-saas/src/components/PostList.astro +108 -0
- package/dist/starters/astro-saas/src/components/Section.astro +52 -0
- package/dist/starters/astro-saas/src/components/SectionHeader.astro +80 -0
- package/dist/starters/astro-saas/src/components/Sections.astro +100 -0
- package/dist/starters/astro-saas/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-saas/src/components/Tags.astro +67 -0
- package/dist/starters/astro-saas/src/components/UpdateEntry.astro +145 -0
- package/dist/starters/astro-saas/src/components/sections/Awards.astro +144 -0
- package/dist/starters/astro-saas/src/components/sections/CaseStudies.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/Changelog.astro +108 -0
- package/dist/starters/astro-saas/src/components/sections/Comparison.astro +132 -0
- package/dist/starters/astro-saas/src/components/sections/Contact.astro +105 -0
- package/dist/starters/astro-saas/src/components/sections/Cta.astro +121 -0
- package/dist/starters/astro-saas/src/components/sections/Faq.astro +142 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureSplit.astro +101 -0
- package/dist/starters/astro-saas/src/components/sections/FeatureTabs.astro +246 -0
- package/dist/starters/astro-saas/src/components/sections/Features.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/FormSection.astro +89 -0
- package/dist/starters/astro-saas/src/components/sections/Hero.astro +102 -0
- package/dist/starters/astro-saas/src/components/sections/HeroForm.astro +129 -0
- package/dist/starters/astro-saas/src/components/sections/HeroSplit.astro +140 -0
- package/dist/starters/astro-saas/src/components/sections/Integrations.astro +172 -0
- package/dist/starters/astro-saas/src/components/sections/Logos.astro +122 -0
- package/dist/starters/astro-saas/src/components/sections/Metrics.astro +97 -0
- package/dist/starters/astro-saas/src/components/sections/Newsletter.astro +94 -0
- package/dist/starters/astro-saas/src/components/sections/Posts.astro +93 -0
- package/dist/starters/astro-saas/src/components/sections/Pricing.astro +196 -0
- package/dist/starters/astro-saas/src/components/sections/PricingTable.astro +151 -0
- package/dist/starters/astro-saas/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-saas/src/components/sections/Screenshot.astro +112 -0
- package/dist/starters/astro-saas/src/components/sections/Security.astro +167 -0
- package/dist/starters/astro-saas/src/components/sections/Steps.astro +177 -0
- package/dist/starters/astro-saas/src/components/sections/Team.astro +135 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonial.astro +118 -0
- package/dist/starters/astro-saas/src/components/sections/Testimonials.astro +119 -0
- package/dist/starters/astro-saas/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-saas/src/components/sections/UseCases.astro +166 -0
- package/dist/starters/astro-saas/src/content/blog/audit-ready-maintenance-schedule.md +41 -0
- package/dist/starters/astro-saas/src/content/blog/certificate-register.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/four-maintenance-numbers.md +31 -0
- package/dist/starters/astro-saas/src/content/blog/fourteen-depots-off-spreadsheets.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/offline-first-inspections.md +33 -0
- package/dist/starters/astro-saas/src/content/blog/work-order-fields.md +43 -0
- package/dist/starters/astro-saas/src/content/changelog/asset-qr-labels.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/certificate-forecasts.md +12 -0
- package/dist/starters/astro-saas/src/content/changelog/contractor-bulk-upload.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/faster-planner.md +11 -0
- package/dist/starters/astro-saas/src/content/changelog/offline-inspections.md +16 -0
- package/dist/starters/astro-saas/src/content/changelog/scim-provisioning.md +8 -0
- package/dist/starters/astro-saas/src/content/changelog/weekly-reminders-fix.md +11 -0
- package/dist/starters/astro-saas/src/content/customers/linmore-schools.md +53 -0
- package/dist/starters/astro-saas/src/content/customers/ostrell-logistics.md +59 -0
- package/dist/starters/astro-saas/src/content/customers/pellow-hotels.md +47 -0
- package/dist/starters/astro-saas/src/content/customers/wendmoor-senior-living.md +47 -0
- package/dist/starters/astro-saas/src/content/forms/contact.json +31 -0
- package/dist/starters/astro-saas/src/content/forms/demo.json +133 -0
- package/dist/starters/astro-saas/src/content/forms/newsletter.json +13 -0
- package/dist/starters/astro-saas/src/content/pages/404.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/about.md +83 -0
- package/dist/starters/astro-saas/src/content/pages/blog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/changelog.md +11 -0
- package/dist/starters/astro-saas/src/content/pages/contact.md +29 -0
- package/dist/starters/astro-saas/src/content/pages/customers.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/index.md +161 -0
- package/dist/starters/astro-saas/src/content/pages/pricing.md +131 -0
- package/dist/starters/astro-saas/src/content/pages/privacy.md +38 -0
- package/dist/starters/astro-saas/src/content/pages/product.md +152 -0
- package/dist/starters/astro-saas/src/content/pages/security.md +69 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/facilities-teams.md +114 -0
- package/dist/starters/astro-saas/src/content/pages/solutions/service-contractors.md +88 -0
- package/dist/starters/astro-saas/src/content/pages/terms.md +31 -0
- package/dist/starters/astro-saas/src/content/team/anika-thorvald.md +7 -0
- package/dist/starters/astro-saas/src/content/team/calum-ashby.md +7 -0
- package/dist/starters/astro-saas/src/content/team/hana-lindqvist.md +10 -0
- package/dist/starters/astro-saas/src/content/team/joel-marchetti.md +7 -0
- package/dist/starters/astro-saas/src/content/team/rosa-ferrante.md +7 -0
- package/dist/starters/astro-saas/src/content/team/tobi-merriden.md +10 -0
- package/dist/starters/astro-saas/src/content.config.ts +746 -0
- package/dist/starters/astro-saas/src/data/navigation.json +146 -0
- package/dist/starters/astro-saas/src/data/scripts.json +10 -0
- package/dist/starters/astro-saas/src/data/site.json +105 -0
- package/dist/starters/astro-saas/src/data/visibility.json +32 -0
- package/dist/starters/astro-saas/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-saas/src/galley/catalog.js +42 -0
- package/dist/starters/astro-saas/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-saas/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-saas/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-saas/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-saas/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-saas/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-saas/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-saas/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-saas/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-saas/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-saas/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-saas/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-saas/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-saas/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-saas/src/galley/components/index.js +5 -0
- package/dist/starters/astro-saas/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-saas/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-saas/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-saas/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-saas/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-saas/src/galley/integration.js +21 -0
- package/dist/starters/astro-saas/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-saas/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-saas/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-saas/src/galley/schema.js +338 -0
- package/dist/starters/astro-saas/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-saas/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-saas/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-saas/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-saas/src/galley/settings.json +18 -0
- package/dist/starters/astro-saas/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-saas/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-saas/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-saas/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-saas/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-saas/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-saas/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-saas/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-saas/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-saas/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-saas/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-saas/src/layouts/Base.astro +106 -0
- package/dist/starters/astro-saas/src/lib/customers.ts +18 -0
- package/dist/starters/astro-saas/src/lib/posts.ts +47 -0
- package/dist/starters/astro-saas/src/lib/site.ts +222 -0
- package/dist/starters/astro-saas/src/pages/404.astro +13 -0
- package/dist/starters/astro-saas/src/pages/[...slug].astro +27 -0
- package/dist/starters/astro-saas/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-saas/src/pages/blog/[slug].astro +298 -0
- package/dist/starters/astro-saas/src/pages/blog/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-saas/src/pages/changelog.astro +41 -0
- package/dist/starters/astro-saas/src/pages/customers/[slug].astro +32 -0
- package/dist/starters/astro-saas/src/styles/global.css +651 -0
- package/dist/starters/astro-saas/src/styles/kit.css +70 -0
- package/dist/starters/astro-saas/src/styles/themes/meridian.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/night-shift.css +173 -0
- package/dist/starters/astro-saas/src/styles/themes/signal.css +173 -0
- package/dist/starters/astro-saas/src/styles/tokens.css +173 -0
- package/dist/starters/astro-saas/starter-notice.json +9 -0
- package/dist/starters/astro-saas/starter.json +52 -0
- package/dist/starters/astro-saas/tsconfig.json +8 -0
- package/dist/starters/astro-saas/wrangler.jsonc +12 -0
- package/dist/starters/astro-starter/CONTENT-GUIDE.md +195 -0
- package/dist/starters/astro-starter/LICENSE +21 -0
- package/dist/starters/astro-starter/README.md +381 -0
- package/dist/starters/astro-starter/astro.config.ts +77 -0
- package/dist/starters/astro-starter/galley/previews/evening.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/home.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/lowfield.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sage.webp +0 -0
- package/dist/starters/astro-starter/galley/previews/sections.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/faq.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/features.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/form.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/hero.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/logos.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/posts.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/pricing.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/rich-text.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/split.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/stats.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/steps.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/team.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonial.webp +0 -0
- package/dist/starters/astro-starter/galley/sections/testimonials.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/about.md +33 -0
- package/dist/starters/astro-starter/galley/templates/about.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/contact.md +25 -0
- package/dist/starters/astro-starter/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.md +27 -0
- package/dist/starters/astro-starter/galley/templates/journal-post.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/project.md +44 -0
- package/dist/starters/astro-starter/galley/templates/project.webp +0 -0
- package/dist/starters/astro-starter/galley/templates/service.md +50 -0
- package/dist/starters/astro-starter/galley/templates/service.webp +0 -0
- package/dist/starters/astro-starter/galley.config.json +187 -0
- package/dist/starters/astro-starter/gitignore +22 -0
- package/dist/starters/astro-starter/netlify.toml +6 -0
- package/dist/starters/astro-starter/package.json +44 -0
- package/dist/starters/astro-starter/public/favicon.svg +1 -0
- package/dist/starters/astro-starter/public/images/blog/kitchen-questions.svg +6 -0
- package/dist/starters/astro-starter/public/images/blog/measured-survey.svg +5 -0
- package/dist/starters/astro-starter/public/images/blog/planning.svg +7 -0
- package/dist/starters/astro-starter/public/images/blog/renovation-guide.svg +8 -0
- package/dist/starters/astro-starter/public/images/gallery/arched-doorway.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/garden-room.svg +4 -0
- package/dist/starters/astro-starter/public/images/gallery/kitchen.svg +7 -0
- package/dist/starters/astro-starter/public/images/gallery/plan.svg +5 -0
- package/dist/starters/astro-starter/public/images/gallery/stair.svg +3 -0
- package/dist/starters/astro-starter/public/images/gallery/window-seat.svg +6 -0
- package/dist/starters/astro-starter/public/images/logos/brackenridge.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/hartwell-glass.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/millbrook-timber.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/ostler-lime.svg +1 -0
- package/dist/starters/astro-starter/public/images/logos/wrenhallow-civic.svg +1 -0
- package/dist/starters/astro-starter/public/images/people/client-mistry.svg +3 -0
- package/dist/starters/astro-starter/public/images/projects/garden-room.svg +11 -0
- package/dist/starters/astro-starter/public/images/projects/hero-house.svg +18 -0
- package/dist/starters/astro-starter/public/images/projects/kitchen-extension.svg +16 -0
- package/dist/starters/astro-starter/public/images/projects/workshop.svg +9 -0
- package/dist/starters/astro-starter/public/images/share.png +0 -0
- package/dist/starters/astro-starter/public/images/share.svg +10 -0
- package/dist/starters/astro-starter/public/images/team/joe-whitlock.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/nell-okafor.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/priya-anand.svg +1 -0
- package/dist/starters/astro-starter/public/images/team/tomas-reyes.svg +1 -0
- package/dist/starters/astro-starter/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-starter/scripts/gallery/gallery.astro +136 -0
- package/dist/starters/astro-starter/scripts/gallery/integration.mjs +42 -0
- package/dist/starters/astro-starter/scripts/gallery/sections.md +201 -0
- package/dist/starters/astro-starter/scripts/make-thumbnails.mjs +198 -0
- package/dist/starters/astro-starter/src/components/Actions.astro +30 -0
- package/dist/starters/astro-starter/src/components/Footer.astro +166 -0
- package/dist/starters/astro-starter/src/components/FormEmbed.astro +51 -0
- package/dist/starters/astro-starter/src/components/Header.astro +284 -0
- package/dist/starters/astro-starter/src/components/Icon.astro +57 -0
- package/dist/starters/astro-starter/src/components/Media.astro +32 -0
- package/dist/starters/astro-starter/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-starter/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-starter/src/components/PostList.astro +108 -0
- package/dist/starters/astro-starter/src/components/Section.astro +43 -0
- package/dist/starters/astro-starter/src/components/SectionHeader.astro +93 -0
- package/dist/starters/astro-starter/src/components/Sections.astro +76 -0
- package/dist/starters/astro-starter/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-starter/src/components/Tags.astro +65 -0
- package/dist/starters/astro-starter/src/components/sections/Contact.astro +106 -0
- package/dist/starters/astro-starter/src/components/sections/Cta.astro +96 -0
- package/dist/starters/astro-starter/src/components/sections/Faq.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Features.astro +105 -0
- package/dist/starters/astro-starter/src/components/sections/FormSection.astro +91 -0
- package/dist/starters/astro-starter/src/components/sections/Gallery.astro +69 -0
- package/dist/starters/astro-starter/src/components/sections/Hero.astro +128 -0
- package/dist/starters/astro-starter/src/components/sections/Logos.astro +99 -0
- package/dist/starters/astro-starter/src/components/sections/Posts.astro +73 -0
- package/dist/starters/astro-starter/src/components/sections/Pricing.astro +186 -0
- package/dist/starters/astro-starter/src/components/sections/RichText.astro +61 -0
- package/dist/starters/astro-starter/src/components/sections/Split.astro +117 -0
- package/dist/starters/astro-starter/src/components/sections/Stats.astro +83 -0
- package/dist/starters/astro-starter/src/components/sections/Steps.astro +113 -0
- package/dist/starters/astro-starter/src/components/sections/Team.astro +112 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonial.astro +82 -0
- package/dist/starters/astro-starter/src/components/sections/Testimonials.astro +107 -0
- package/dist/starters/astro-starter/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-starter/src/content/authors/ines-ferreira.md +5 -0
- package/dist/starters/astro-starter/src/content/authors/nell-okafor.md +6 -0
- package/dist/starters/astro-starter/src/content/authors/tomas-reyes.md +6 -0
- package/dist/starters/astro-starter/src/content/blog/kitchen-extension-questions.md +46 -0
- package/dist/starters/astro-starter/src/content/blog/living-through-a-renovation.md +47 -0
- package/dist/starters/astro-starter/src/content/blog/measured-survey.md +42 -0
- package/dist/starters/astro-starter/src/content/blog/permitted-development.md +45 -0
- package/dist/starters/astro-starter/src/content/forms/contact.json +39 -0
- package/dist/starters/astro-starter/src/content/pages/404.md +17 -0
- package/dist/starters/astro-starter/src/content/pages/about.md +66 -0
- package/dist/starters/astro-starter/src/content/pages/blog.md +9 -0
- package/dist/starters/astro-starter/src/content/pages/contact.md +30 -0
- package/dist/starters/astro-starter/src/content/pages/index.md +125 -0
- package/dist/starters/astro-starter/src/content/pages/pricing.md +77 -0
- package/dist/starters/astro-starter/src/content/pages/privacy.md +25 -0
- package/dist/starters/astro-starter/src/content/pages/services.md +84 -0
- package/dist/starters/astro-starter/src/content/team/joe-whitlock.md +10 -0
- package/dist/starters/astro-starter/src/content/team/nell-okafor.md +12 -0
- package/dist/starters/astro-starter/src/content/team/priya-anand.md +7 -0
- package/dist/starters/astro-starter/src/content/team/tomas-reyes.md +10 -0
- package/dist/starters/astro-starter/src/content.config.ts +410 -0
- package/dist/starters/astro-starter/src/data/navigation.json +64 -0
- package/dist/starters/astro-starter/src/data/scripts.json +10 -0
- package/dist/starters/astro-starter/src/data/site.json +66 -0
- package/dist/starters/astro-starter/src/data/visibility.json +30 -0
- package/dist/starters/astro-starter/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-starter/src/galley/catalog.js +42 -0
- package/dist/starters/astro-starter/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-starter/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-starter/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-starter/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-starter/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-starter/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-starter/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-starter/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-starter/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-starter/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-starter/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-starter/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-starter/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-starter/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-starter/src/galley/components/index.js +5 -0
- package/dist/starters/astro-starter/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-starter/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-starter/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-starter/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-starter/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-starter/src/galley/integration.js +21 -0
- package/dist/starters/astro-starter/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-starter/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-starter/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-starter/src/galley/schema.js +338 -0
- package/dist/starters/astro-starter/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-starter/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-starter/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-starter/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-starter/src/galley/settings.json +18 -0
- package/dist/starters/astro-starter/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-starter/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-starter/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-starter/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-starter/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-starter/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-starter/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-starter/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-starter/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-starter/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-starter/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-starter/src/layouts/Base.astro +104 -0
- package/dist/starters/astro-starter/src/lib/posts.ts +43 -0
- package/dist/starters/astro-starter/src/lib/site.ts +201 -0
- package/dist/starters/astro-starter/src/pages/404.astro +13 -0
- package/dist/starters/astro-starter/src/pages/[...slug].astro +32 -0
- package/dist/starters/astro-starter/src/pages/blog/[...page].astro +49 -0
- package/dist/starters/astro-starter/src/pages/blog/[slug].astro +289 -0
- package/dist/starters/astro-starter/src/pages/blog/tags/[tag]/[...page].astro +82 -0
- package/dist/starters/astro-starter/src/styles/global.css +478 -0
- package/dist/starters/astro-starter/src/styles/kit.css +74 -0
- package/dist/starters/astro-starter/src/styles/themes/evening.css +135 -0
- package/dist/starters/astro-starter/src/styles/themes/lowfield.css +133 -0
- package/dist/starters/astro-starter/src/styles/themes/sage.css +134 -0
- package/dist/starters/astro-starter/src/styles/tokens.css +133 -0
- package/dist/starters/astro-starter/starter-notice.json +9 -0
- package/dist/starters/astro-starter/starter.json +52 -0
- package/dist/starters/astro-starter/tsconfig.json +8 -0
- package/dist/starters/astro-starter/wrangler.jsonc +12 -0
- package/dist/starters/astro-storefront/CONTENT-GUIDE.md +280 -0
- package/dist/starters/astro-storefront/LICENSE +21 -0
- package/dist/starters/astro-storefront/README.md +203 -0
- package/dist/starters/astro-storefront/astro.config.ts +50 -0
- package/dist/starters/astro-storefront/galley/photography/ART-DIRECTION.md +170 -0
- package/dist/starters/astro-storefront/galley/photography/LOG.md +91 -0
- package/dist/starters/astro-storefront/galley/photography/placeholders.json +1 -0
- package/dist/starters/astro-storefront/galley/photography/shots.json +743 -0
- package/dist/starters/astro-storefront/galley/previews/chalk.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/night.webp +0 -0
- package/dist/starters/astro-storefront/galley/previews/paper.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/campaign-hero.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/chapters.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/collection-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/credits.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/cta.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/featured-product.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/film.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/form.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/gallery.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/image-band.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/journal-list.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/lookbook-grid.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/marquee.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/newsletter.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/pieces.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/product-rail.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/quote.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/shop-the-look.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/split-editorial.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/statement.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/sections/story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/about.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/about.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.md +71 -0
- package/dist/starters/astro-storefront/galley/templates/campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/contact.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/contact.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.md +47 -0
- package/dist/starters/astro-storefront/galley/templates/lookbook.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.md +21 -0
- package/dist/starters/astro-storefront/galley/templates/product-story.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.md +40 -0
- package/dist/starters/astro-storefront/galley/templates/shop-campaign.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.md +19 -0
- package/dist/starters/astro-storefront/galley/templates/stockists.webp +0 -0
- package/dist/starters/astro-storefront/galley/templates/story.md +49 -0
- package/dist/starters/astro-storefront/galley/templates/story.webp +0 -0
- package/dist/starters/astro-storefront/galley.config.json +752 -0
- package/dist/starters/astro-storefront/gitignore +26 -0
- package/dist/starters/astro-storefront/netlify.toml +6 -0
- package/dist/starters/astro-storefront/package.json +49 -0
- package/dist/starters/astro-storefront/public/favicon.svg +5 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/aw26-harbour-wall-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/campaign/ss26-plaster-steps-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-04-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-05-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-06-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-07-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/aw26/look-08-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/cover-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-01-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-02-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/lookbooks/ss26/look-03-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/blanket-scarf-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/field-coat-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/gansey-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rib-polo-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/_sizes/pieces/rollneck-640.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/hands.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/weave.webp +0 -0
- package/dist/starters/astro-storefront/public/images/atelier/workroom.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/aw26-harbour-wall.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/ss26-plaster-steps.webp +0 -0
- package/dist/starters/astro-storefront/public/images/campaign/wall-shadow.webp +0 -0
- package/dist/starters/astro-storefront/public/images/film/the-long-afternoon.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/a-pattern-is-a-letter.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/eleven-tries-at-rust.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/keeping-a-wool-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/journal/why-we-make-forty.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-04.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-05.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-06.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-07.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/aw26/look-08.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/cover.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-01.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-02.webp +0 -0
- package/dist/starters/astro-storefront/public/images/lookbooks/ss26/look-03.webp +0 -0
- package/dist/starters/astro-storefront/public/images/people/hesper-lowe.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/blanket-scarf.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/field-coat.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/gansey.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rib-polo.webp +0 -0
- package/dist/starters/astro-storefront/public/images/pieces/rollneck.webp +0 -0
- package/dist/starters/astro-storefront/public/images/share.jpg +0 -0
- package/dist/starters/astro-storefront/scripts/check-type.mjs +198 -0
- package/dist/starters/astro-storefront/scripts/gallery/gallery.astro +86 -0
- package/dist/starters/astro-storefront/scripts/gallery/integration.mjs +43 -0
- package/dist/starters/astro-storefront/scripts/gallery/sections.md +196 -0
- package/dist/starters/astro-storefront/scripts/ingest-photos.mjs +169 -0
- package/dist/starters/astro-storefront/scripts/lib/tokens.mjs +63 -0
- package/dist/starters/astro-storefront/scripts/make-placeholders.mjs +188 -0
- package/dist/starters/astro-storefront/scripts/make-sizes.mjs +31 -0
- package/dist/starters/astro-storefront/scripts/make-thumbnails.mjs +249 -0
- package/dist/starters/astro-storefront/scripts/seed-shopify.mjs +208 -0
- package/dist/starters/astro-storefront/src/components/Actions.astro +31 -0
- package/dist/starters/astro-storefront/src/components/Footer.astro +206 -0
- package/dist/starters/astro-storefront/src/components/Header.astro +423 -0
- package/dist/starters/astro-storefront/src/components/Icon.astro +43 -0
- package/dist/starters/astro-storefront/src/components/LookbookCard.astro +76 -0
- package/dist/starters/astro-storefront/src/components/LookbookEntry.astro +175 -0
- package/dist/starters/astro-storefront/src/components/Media.astro +37 -0
- package/dist/starters/astro-storefront/src/components/PageEntry.astro +64 -0
- package/dist/starters/astro-storefront/src/components/PieceList.astro +112 -0
- package/dist/starters/astro-storefront/src/components/PostCard.astro +101 -0
- package/dist/starters/astro-storefront/src/components/PostList.astro +103 -0
- package/dist/starters/astro-storefront/src/components/Section.astro +47 -0
- package/dist/starters/astro-storefront/src/components/SectionHeader.astro +70 -0
- package/dist/starters/astro-storefront/src/components/Sections.astro +89 -0
- package/dist/starters/astro-storefront/src/components/StarterNotice.astro +97 -0
- package/dist/starters/astro-storefront/src/components/Tags.astro +68 -0
- package/dist/starters/astro-storefront/src/components/sections/CampaignHero.astro +288 -0
- package/dist/starters/astro-storefront/src/components/sections/Chapters.astro +142 -0
- package/dist/starters/astro-storefront/src/components/sections/CollectionGrid.astro +116 -0
- package/dist/starters/astro-storefront/src/components/sections/Contact.astro +136 -0
- package/dist/starters/astro-storefront/src/components/sections/Credits.astro +62 -0
- package/dist/starters/astro-storefront/src/components/sections/Cta.astro +105 -0
- package/dist/starters/astro-storefront/src/components/sections/FeaturedProduct.astro +109 -0
- package/dist/starters/astro-storefront/src/components/sections/Film.astro +110 -0
- package/dist/starters/astro-storefront/src/components/sections/FormSection.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Gallery.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/ImageBand.astro +33 -0
- package/dist/starters/astro-storefront/src/components/sections/JournalList.astro +132 -0
- package/dist/starters/astro-storefront/src/components/sections/Look.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/LookbookGrid.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Marquee.astro +164 -0
- package/dist/starters/astro-storefront/src/components/sections/Newsletter.astro +83 -0
- package/dist/starters/astro-storefront/src/components/sections/Pieces.astro +131 -0
- package/dist/starters/astro-storefront/src/components/sections/ProductRail.astro +82 -0
- package/dist/starters/astro-storefront/src/components/sections/Quote.astro +112 -0
- package/dist/starters/astro-storefront/src/components/sections/ShopTheLook.astro +150 -0
- package/dist/starters/astro-storefront/src/components/sections/SplitEditorial.astro +81 -0
- package/dist/starters/astro-storefront/src/components/sections/Statement.astro +178 -0
- package/dist/starters/astro-storefront/src/components/sections/Stockists.astro +139 -0
- package/dist/starters/astro-storefront/src/components/sections/Story.astro +96 -0
- package/dist/starters/astro-storefront/src/components/sections/Unknown.astro +37 -0
- package/dist/starters/astro-storefront/src/components/shop/BagDrawer.astro +114 -0
- package/dist/starters/astro-storefront/src/components/shop/BagView.astro +241 -0
- package/dist/starters/astro-storefront/src/components/shop/Breadcrumbs.astro +63 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductCard.astro +142 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductGrid.astro +297 -0
- package/dist/starters/astro-storefront/src/components/shop/ProductImage.astro +53 -0
- package/dist/starters/astro-storefront/src/content/forms/contact.json +49 -0
- package/dist/starters/astro-storefront/src/content/forms/newsletter.json +30 -0
- package/dist/starters/astro-storefront/src/content/forms/stockist.json +35 -0
- package/dist/starters/astro-storefront/src/content/journal/a-pattern-is-a-letter.md +25 -0
- package/dist/starters/astro-storefront/src/content/journal/eleven-tries-at-rust.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/keeping-a-wool-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/journal/why-we-make-forty.md +29 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/aw26-the-long-afternoon.md +126 -0
- package/dist/starters/astro-storefront/src/content/lookbooks/ss26-plaster.md +55 -0
- package/dist/starters/astro-storefront/src/content/pages/404.md +14 -0
- package/dist/starters/astro-storefront/src/content/pages/atelier.md +102 -0
- package/dist/starters/astro-storefront/src/content/pages/bag.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/contact.md +35 -0
- package/dist/starters/astro-storefront/src/content/pages/index.md +107 -0
- package/dist/starters/astro-storefront/src/content/pages/journal.md +9 -0
- package/dist/starters/astro-storefront/src/content/pages/lookbook.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/privacy.md +33 -0
- package/dist/starters/astro-storefront/src/content/pages/search.md +5 -0
- package/dist/starters/astro-storefront/src/content/pages/shop.md +4 -0
- package/dist/starters/astro-storefront/src/content/pages/stockists.md +66 -0
- package/dist/starters/astro-storefront/src/content/products/car-coat.md +29 -0
- package/dist/starters/astro-storefront/src/content/products/field-coat.md +35 -0
- package/dist/starters/astro-storefront/src/content/products/gansey.md +20 -0
- package/dist/starters/astro-storefront/src/content/products/wrap-coat.md +16 -0
- package/dist/starters/astro-storefront/src/content.config.ts +563 -0
- package/dist/starters/astro-storefront/src/data/navigation.json +77 -0
- package/dist/starters/astro-storefront/src/data/scripts.json +29 -0
- package/dist/starters/astro-storefront/src/data/shop/catalogue.json +2431 -0
- package/dist/starters/astro-storefront/src/data/shop/store.json +7 -0
- package/dist/starters/astro-storefront/src/data/site.json +161 -0
- package/dist/starters/astro-storefront/src/data/stockists.json +81 -0
- package/dist/starters/astro-storefront/src/data/visibility.json +33 -0
- package/dist/starters/astro-storefront/src/galley/catalog-data.js +293 -0
- package/dist/starters/astro-storefront/src/galley/catalog.js +42 -0
- package/dist/starters/astro-storefront/src/galley/client/attribution.js +79 -0
- package/dist/starters/astro-storefront/src/galley/client/forms.js +580 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/frame-post.js +77 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/galley.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/hubspot.js +110 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/mailto.js +20 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/marketo.js +133 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/pardot.js +53 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/salesforce.js +50 -0
- package/dist/starters/astro-storefront/src/galley/client/providers/webhook.js +40 -0
- package/dist/starters/astro-storefront/src/galley/client/registry.js +32 -0
- package/dist/starters/astro-storefront/src/galley/client/types.d.ts +80 -0
- package/dist/starters/astro-storefront/src/galley/components/ConsentBanner.astro +17 -0
- package/dist/starters/astro-storefront/src/galley/components/Form.astro +102 -0
- package/dist/starters/astro-storefront/src/galley/components/Scripts.astro +30 -0
- package/dist/starters/astro-storefront/src/galley/components/index.js +5 -0
- package/dist/starters/astro-storefront/src/galley/forms/forms.css +389 -0
- package/dist/starters/astro-storefront/src/galley/forms/free-email-domains.js +62 -0
- package/dist/starters/astro-storefront/src/galley/forms/logic.js +220 -0
- package/dist/starters/astro-storefront/src/galley/forms/messages.js +82 -0
- package/dist/starters/astro-storefront/src/galley/forms/render.js +490 -0
- package/dist/starters/astro-storefront/src/galley/integration.js +21 -0
- package/dist/starters/astro-storefront/src/galley/kit.d.ts +298 -0
- package/dist/starters/astro-storefront/src/galley/mailto/config.js +76 -0
- package/dist/starters/astro-storefront/src/galley/mailto/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/runtime/site-config.js +50 -0
- package/dist/starters/astro-storefront/src/galley/schema.js +338 -0
- package/dist/starters/astro-storefront/src/galley/scripts/banner.js +80 -0
- package/dist/starters/astro-storefront/src/galley/scripts/plan.js +253 -0
- package/dist/starters/astro-storefront/src/galley/scripts/runtime.gen.js +5 -0
- package/dist/starters/astro-storefront/src/galley/scripts/snippets.js +245 -0
- package/dist/starters/astro-storefront/src/galley/settings.json +18 -0
- package/dist/starters/astro-storefront/src/galley/shared/glob.js +64 -0
- package/dist/starters/astro-storefront/src/galley/shared/markdown.js +120 -0
- package/dist/starters/astro-storefront/src/galley/visibility/config.js +223 -0
- package/dist/starters/astro-storefront/src/galley/visibility/content.js +176 -0
- package/dist/starters/astro-storefront/src/galley/visibility/crawlers.js +195 -0
- package/dist/starters/astro-storefront/src/galley/visibility/html.js +293 -0
- package/dist/starters/astro-storefront/src/galley/visibility/integration.js +528 -0
- package/dist/starters/astro-storefront/src/galley/visibility/markdown.js +498 -0
- package/dist/starters/astro-storefront/src/galley/visibility/page.js +146 -0
- package/dist/starters/astro-storefront/src/galley/visibility/site.js +583 -0
- package/dist/starters/astro-storefront/src/galley/visibility/structured.js +131 -0
- package/dist/starters/astro-storefront/src/layouts/Base.astro +112 -0
- package/dist/starters/astro-storefront/src/lib/journal.ts +45 -0
- package/dist/starters/astro-storefront/src/lib/lookbooks.ts +20 -0
- package/dist/starters/astro-storefront/src/lib/shop/data.ts +161 -0
- package/dist/starters/astro-storefront/src/lib/shop/loader.ts +30 -0
- package/dist/starters/astro-storefront/src/lib/shop/store.ts +332 -0
- package/dist/starters/astro-storefront/src/lib/shop/structured.ts +40 -0
- package/dist/starters/astro-storefront/src/lib/shop/types.ts +80 -0
- package/dist/starters/astro-storefront/src/lib/site.ts +181 -0
- package/dist/starters/astro-storefront/src/pages/404.astro +13 -0
- package/dist/starters/astro-storefront/src/pages/[...slug].astro +34 -0
- package/dist/starters/astro-storefront/src/pages/bag.astro +37 -0
- package/dist/starters/astro-storefront/src/pages/journal/[...page].astro +59 -0
- package/dist/starters/astro-storefront/src/pages/journal/[slug].astro +205 -0
- package/dist/starters/astro-storefront/src/pages/journal/tags/[tag]/[...page].astro +83 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/[slug].astro +23 -0
- package/dist/starters/astro-storefront/src/pages/lookbook/index.astro +66 -0
- package/dist/starters/astro-storefront/src/pages/products/[handle].astro +455 -0
- package/dist/starters/astro-storefront/src/pages/search.astro +137 -0
- package/dist/starters/astro-storefront/src/pages/search.json.ts +36 -0
- package/dist/starters/astro-storefront/src/pages/shop/[collection].astro +65 -0
- package/dist/starters/astro-storefront/src/pages/shop/index.astro +33 -0
- package/dist/starters/astro-storefront/src/scripts/shop.ts +742 -0
- package/dist/starters/astro-storefront/src/styles/galley-kit.css +97 -0
- package/dist/starters/astro-storefront/src/styles/global.css +662 -0
- package/dist/starters/astro-storefront/src/styles/themes/chalk.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/night.css +181 -0
- package/dist/starters/astro-storefront/src/styles/themes/paper.css +181 -0
- package/dist/starters/astro-storefront/src/styles/tokens.css +181 -0
- package/dist/starters/astro-storefront/starter-notice.json +9 -0
- package/dist/starters/astro-storefront/starter.json +53 -0
- package/dist/starters/astro-storefront/tsconfig.json +8 -0
- package/dist/starters/astro-storefront/wrangler.jsonc +12 -0
- package/dist/web/assets/AppSettingsScreen-D9ZHXus9.js +1 -0
- package/dist/web/assets/BodyEditor-DAJ8MM41.js +1 -0
- package/dist/web/assets/BrandScreen-BuYHSbp6.js +1 -0
- package/dist/web/assets/CollectionScreen-DVXLw7MF.js +1 -0
- package/dist/web/assets/EditorScreen-8vhIBZu1.js +6 -0
- package/dist/web/assets/FormsScreen-BbngAAzO.js +4 -0
- package/dist/web/assets/HistoryScreen-CubZj8QG.js +4 -0
- package/dist/web/assets/ImportScreen-DA8mZ3-S.css +1 -0
- package/dist/web/assets/ImportScreen-eVAPjnE2.js +1 -0
- package/dist/web/assets/InboxScreen-Azqy6w4_.js +2 -0
- package/dist/web/assets/MediaLibraryPane-Dpcxede9.css +1 -0
- package/dist/web/assets/MediaLibraryPane-jMuqbnLa.js +1 -0
- package/dist/web/assets/MediaScreen-BQYVSf8P.css +1 -0
- package/dist/web/assets/MediaScreen-mg2CATkP.js +1 -0
- package/dist/web/assets/NewSiteScreen-D9zWX6oE.js +1 -0
- package/dist/web/assets/NewSiteScreen-RQ3ccqTf.css +1 -0
- package/dist/web/assets/Online-bYUu0ETZ.js +1 -0
- package/dist/web/assets/OpenScreen-DR1GhNWX.js +1 -0
- package/dist/web/assets/PluginsScreen-1qEv-u35.js +3 -0
- package/dist/web/assets/PreviewControls-Du87hOEG.js +1 -0
- package/dist/web/assets/PreviewPane-SH9rzgVw.css +1 -0
- package/dist/web/assets/PreviewPane-a06mELw4.js +3 -0
- package/dist/web/assets/ProofScreen-CZfFbHFS.js +7 -0
- package/dist/web/assets/ProofScreen-fG_mV-V4.css +1 -0
- package/dist/web/assets/ProviderSettings-BOiCGeSI.js +1 -0
- package/dist/web/assets/ProviderSettings-COu_e6Mx.css +1 -0
- package/dist/web/assets/PublishDialog-CSKU1lfx.js +3 -0
- package/dist/web/assets/ReachNote-CZYr1oL0.js +1 -0
- package/dist/web/assets/ReachNote-DhT9Cta-.css +1 -0
- package/dist/web/assets/RedirectsScreen-DeR_yuj5.js +3 -0
- package/dist/web/assets/RedirectsScreen-QTaAXMh-.css +1 -0
- package/dist/web/assets/ScriptsScreen-BXY-kqbq.js +2 -0
- package/dist/web/assets/ScriptsScreen-DMdmwkY4.css +1 -0
- package/dist/web/assets/SiteHomeScreen-DOrqAteL.js +1 -0
- package/dist/web/assets/SiteSettingsScreen-B8xQnhjd.js +4 -0
- package/dist/web/assets/SourceView-B5SoYjUF.js +1 -0
- package/dist/web/assets/VisibilityScreen-B4iOATC4.js +2 -0
- package/dist/web/assets/brand-BYux4UiC.css +1 -0
- package/dist/web/assets/changes-BtRtvJ12.js +1 -0
- package/dist/web/assets/changes-DLBkrfUR.js +1 -0
- package/dist/web/assets/chrome-Brnq5kGb.js +1 -0
- package/dist/web/assets/clickToEdit-CV1WT3k1.js +1 -0
- package/dist/web/assets/coalesce-BG8d12M7.js +1 -0
- package/dist/web/assets/codemirror-CWul2x0p.js +11 -0
- package/dist/web/assets/codemirror-g0T4-Tsm.js +1 -0
- package/dist/web/assets/codemirror-languages-RlWkzgfM.js +28 -0
- package/dist/web/assets/common-BA1skXL0.css +1 -0
- package/dist/web/assets/common-BdVEb5Zs.js +2 -0
- package/dist/web/assets/cost-BhkzE86J.js +1 -0
- package/dist/web/assets/events-CTTFdOf-.js +1 -0
- package/dist/web/assets/figtree-latin-ext-wght-normal-DCwSJGxG.woff2 +0 -0
- package/dist/web/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/dist/web/assets/hashScroll-CSp59QpH.js +1 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/dist/web/assets/index-Djh-DSIT.js +10 -0
- package/dist/web/assets/index-Pd8oyXqS.css +1 -0
- package/dist/web/assets/jobs-BHawhnH2.js +1 -0
- package/dist/web/assets/listPlan-BXud7Oxv.js +1 -0
- package/dist/web/assets/marked.esm-CYtFtVHW.js +75 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-italic-CSPGnFdO.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-ext-opsz-normal-BQn1nviT.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-italic-kJKFiXvB.woff2 +0 -0
- package/dist/web/assets/newsreader-latin-opsz-normal-s-izfB6B.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-italic-DTr-ymY4.woff2 +0 -0
- package/dist/web/assets/newsreader-vietnamese-opsz-normal-BjhtXyW2.woff2 +0 -0
- package/dist/web/assets/outside-CZs19WbV.css +1 -0
- package/dist/web/assets/outside-DaBM5h5B.js +2 -0
- package/dist/web/assets/paths-C8ESZJVU.js +1 -0
- package/dist/web/assets/prefs-BcNyBxxO.js +1 -0
- package/dist/web/assets/proof-BnPD-0Jr.css +1 -0
- package/dist/web/assets/proof-zOrlMTSg.js +2 -0
- package/dist/web/assets/purify.es-BQJV6A36.js +3 -0
- package/dist/web/assets/renderMarkdown-R9_GwOSq.js +1 -0
- package/dist/web/assets/scaffold-BHkqc62J.js +1 -0
- package/dist/web/assets/site-DJUEXLHW.js +1 -0
- package/dist/web/assets/sites-CGDZymBT.js +1 -0
- package/dist/web/assets/store-C95UZPFo.js +1 -0
- package/dist/web/assets/ui-C6O2tW4c.js +3 -0
- package/dist/web/assets/useBrand-DSAfWS_y.js +1 -0
- package/dist/web/assets/usePlugins-acEOSN5a.js +1 -0
- package/dist/web/assets/usePlugins-hom8Btua.css +1 -0
- package/dist/web/assets/useVisibility-B8cm5WkO.css +1 -0
- package/dist/web/assets/useVisibility-kpZhLMTT.js +3 -0
- package/dist/web/index.html +23 -0
- package/dist/web/theme.js +8 -0
- package/package.json +49 -3
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// Vendored from @galley/astro 0.1.0 by scripts/vendor.mjs. Don't edit: run the script again to update.
|
|
2
|
+
// @ts-check
|
|
3
|
+
// JSON-LD for the facts a site actually has, checked against Google's
|
|
4
|
+
// current documentation (read 23 November 2026). Each builder returns null
|
|
5
|
+
// rather than something incomplete:
|
|
6
|
+
//
|
|
7
|
+
// WebSite home page only; `name` and `url` are required, and the
|
|
8
|
+
// url must be the root of the host — so nothing is written
|
|
9
|
+
// for a site built under a sub-path.
|
|
10
|
+
// developers.google.com/search/docs/appearance/site-names
|
|
11
|
+
// Organization home page; no required properties — written with the
|
|
12
|
+
// name and url, plus logo/sameAs/email/telephone when the
|
|
13
|
+
// data file gives them (a logo only when its file exists).
|
|
14
|
+
// …/appearance/structured-data/organization
|
|
15
|
+
// Article / no required properties; written only when the page
|
|
16
|
+
// BlogPosting states a headline and a publication date
|
|
17
|
+
// (article:published_time), with dateModified, author
|
|
18
|
+
// (as a Person, by name) and image when the page states
|
|
19
|
+
// them. The site's generic share picture is never used as
|
|
20
|
+
// a post's image: Google asks for images of the article.
|
|
21
|
+
// …/appearance/structured-data/article
|
|
22
|
+
// BreadcrumbList pages two or more levels deep; at least two ListItems,
|
|
23
|
+
// each with position, name and an absolute item address.
|
|
24
|
+
// …/appearance/structured-data/breadcrumb
|
|
25
|
+
//
|
|
26
|
+
// A page that already carries a type of its own keeps it, and gets no second
|
|
27
|
+
// one from the kit.
|
|
28
|
+
|
|
29
|
+
/** @typedef {import("./page.js").PageFacts} PageFacts */
|
|
30
|
+
/** @typedef {Record<string, unknown>} JsonLd */
|
|
31
|
+
|
|
32
|
+
const CONTEXT = "https://schema.org";
|
|
33
|
+
|
|
34
|
+
/** @param {string} value */
|
|
35
|
+
function isoDate(value) {
|
|
36
|
+
if (!value) return "";
|
|
37
|
+
const time = Date.parse(value);
|
|
38
|
+
|
|
39
|
+
return Number.isFinite(time) ? value.trim() : "";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param {{ name: string; url: string; subPath: boolean }} site
|
|
44
|
+
* @returns {JsonLd | null}
|
|
45
|
+
*/
|
|
46
|
+
export function websiteLd(site) {
|
|
47
|
+
if (!site.name || !/^https?:\/\//.test(site.url) || site.subPath) return null;
|
|
48
|
+
return { "@context": CONTEXT, "@type": "WebSite", name: site.name, url: site.url };
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {{ name: string; url: string; logo?: string; sameAs?: string[]; email?: string; telephone?: string }} org
|
|
53
|
+
* @returns {JsonLd | null}
|
|
54
|
+
*/
|
|
55
|
+
export function organizationLd(org) {
|
|
56
|
+
if (!org.name || !/^https?:\/\//.test(org.url)) return null;
|
|
57
|
+
/** @type {JsonLd} */
|
|
58
|
+
const out = { "@context": CONTEXT, "@type": "Organization", name: org.name, url: org.url };
|
|
59
|
+
|
|
60
|
+
if (org.logo) out.logo = org.logo;
|
|
61
|
+
if (org.sameAs && org.sameAs.length) out.sameAs = [...org.sameAs];
|
|
62
|
+
if (org.email) out.email = org.email;
|
|
63
|
+
if (org.telephone) out.telephone = org.telephone;
|
|
64
|
+
return out;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @param {PageFacts} page
|
|
69
|
+
* @param {{ type: "Article" | "BlogPosting"; siteImage: string }} options
|
|
70
|
+
* @returns {JsonLd | null}
|
|
71
|
+
*/
|
|
72
|
+
export function articleLd(page, options) {
|
|
73
|
+
const headline = page.name.trim();
|
|
74
|
+
const published = isoDate(page.published);
|
|
75
|
+
|
|
76
|
+
if (!headline || !published) return null;
|
|
77
|
+
/** @type {JsonLd} */
|
|
78
|
+
const out = { "@context": CONTEXT, "@type": options.type, headline, datePublished: published };
|
|
79
|
+
const modified = isoDate(page.modified);
|
|
80
|
+
|
|
81
|
+
if (modified) out.dateModified = modified;
|
|
82
|
+
if (page.author) out.author = [{ "@type": "Person", name: page.author }];
|
|
83
|
+
if (page.image && page.image !== options.siteImage) out.image = [page.image];
|
|
84
|
+
out.url = page.canonical ?? page.url;
|
|
85
|
+
return out;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @param {{ name: string; url: string }[]} trail From the top section down to the page itself.
|
|
90
|
+
* @returns {JsonLd | null}
|
|
91
|
+
*/
|
|
92
|
+
export function breadcrumbLd(trail) {
|
|
93
|
+
const items = trail.filter((step) => step.name && /^https?:\/\//.test(step.url));
|
|
94
|
+
|
|
95
|
+
if (items.length < 2 || items.length !== trail.length) return null;
|
|
96
|
+
return {
|
|
97
|
+
"@context": CONTEXT,
|
|
98
|
+
"@type": "BreadcrumbList",
|
|
99
|
+
itemListElement: items.map((step, index) => ({ "@type": "ListItem", position: index + 1, name: step.name, item: step.url })),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Required properties, per Google's docs, of what this module writes — the
|
|
105
|
+
* same rules the app's audit applies (packages/core/src/seo/rendered-checks.ts).
|
|
106
|
+
*
|
|
107
|
+
* @param {JsonLd} node
|
|
108
|
+
* @returns {string[]} What is missing; empty when complete.
|
|
109
|
+
*/
|
|
110
|
+
export function missingRequired(node) {
|
|
111
|
+
const type = node["@type"];
|
|
112
|
+
|
|
113
|
+
if (type === "WebSite") return ["name", "url"].filter((key) => !node[key]);
|
|
114
|
+
if (type === "BreadcrumbList") {
|
|
115
|
+
const items = Array.isArray(node.itemListElement) ? /** @type {Record<string, unknown>[]} */ (node.itemListElement) : [];
|
|
116
|
+
const missing = items.length < 2 ? ["at least two itemListElement entries"] : [];
|
|
117
|
+
|
|
118
|
+
items.forEach((item, index) => {
|
|
119
|
+
if (typeof item.position !== "number") missing.push(`position on item ${index + 1}`);
|
|
120
|
+
if (!item.name) missing.push(`name on item ${index + 1}`);
|
|
121
|
+
if (typeof item.item !== "string" || !/^https?:\/\//.test(item.item)) missing.push(`an absolute item on item ${index + 1}`);
|
|
122
|
+
});
|
|
123
|
+
return missing;
|
|
124
|
+
}
|
|
125
|
+
return [];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** A JSON-LD block, safe inside HTML. */
|
|
129
|
+
export function jsonLdTag(/** @type {JsonLd} */ node) {
|
|
130
|
+
return `<script type="application/ld+json" data-galley-jsonld>${JSON.stringify(node).replace(/</g, "\\u003c")}</script>`;
|
|
131
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
// Every page's <html>, <head>, header and footer. Titles, descriptions and
|
|
3
|
+
// share images come from front matter, falling back to src/data/site.json.
|
|
4
|
+
import "../styles/tokens.css";
|
|
5
|
+
import "../styles/global.css";
|
|
6
|
+
import "../styles/galley-kit.css";
|
|
7
|
+
import Header from "../components/Header.astro";
|
|
8
|
+
import Footer from "../components/Footer.astro";
|
|
9
|
+
import { Scripts } from "../galley/components/index.js";
|
|
10
|
+
import { absolute, fill, plain, site, starterNotice, withBase } from "../lib/site";
|
|
11
|
+
|
|
12
|
+
interface Props {
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Social share image path, e.g. /images/share.jpg. */
|
|
16
|
+
image?: string;
|
|
17
|
+
imageAlt?: string;
|
|
18
|
+
noindex?: boolean;
|
|
19
|
+
/** Leave the title as written instead of applying site.titleTemplate. */
|
|
20
|
+
bareTitle?: boolean;
|
|
21
|
+
type?: "website" | "article";
|
|
22
|
+
publishedTime?: Date;
|
|
23
|
+
author?: string;
|
|
24
|
+
/** Set the header over the page's opening photograph (see Header.astro). */
|
|
25
|
+
overlayHeader?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const {
|
|
29
|
+
title,
|
|
30
|
+
description = site.description,
|
|
31
|
+
image = site.shareImage,
|
|
32
|
+
imageAlt = site.shareImageAlt,
|
|
33
|
+
noindex = false,
|
|
34
|
+
bareTitle = false,
|
|
35
|
+
type = "website",
|
|
36
|
+
publishedTime,
|
|
37
|
+
author,
|
|
38
|
+
overlayHeader = false,
|
|
39
|
+
} = Astro.props;
|
|
40
|
+
|
|
41
|
+
const pageTitle = bareTitle ? plain(title) : fill(site.titleTemplate, { title: plain(title), site: site.name });
|
|
42
|
+
// A page kept out of search (the 404 page, `noindex: true`) gets no canonical address.
|
|
43
|
+
const canonical = noindex ? undefined : absolute(Astro.url.pathname);
|
|
44
|
+
const shareImage = absolute(withBase(image));
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
<!doctype html>
|
|
48
|
+
<html lang={site.lang}>
|
|
49
|
+
<head>
|
|
50
|
+
<meta charset="utf-8" />
|
|
51
|
+
<Scripts placement="head" />
|
|
52
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
53
|
+
<title>{pageTitle}</title>
|
|
54
|
+
<meta name="description" content={description} />
|
|
55
|
+
{canonical && <link rel="canonical" href={canonical} />}
|
|
56
|
+
{noindex && <meta name="robots" content="noindex" />}
|
|
57
|
+
<link rel="icon" href={withBase("/favicon.svg")} type="image/svg+xml" />
|
|
58
|
+
<link rel="sitemap" href={withBase("/sitemap.xml")} />
|
|
59
|
+
<meta name="generator" content={Astro.generator} />
|
|
60
|
+
{/* The opening section enters once ([data-enter]); without script it simply shows. */}
|
|
61
|
+
<script is:inline>document.documentElement.classList.add('m-enter');setTimeout(()=>document.documentElement.classList.add('m-enter-done'),700)</script>
|
|
62
|
+
|
|
63
|
+
<meta property="og:type" content={type} />
|
|
64
|
+
<meta property="og:site_name" content={site.name} />
|
|
65
|
+
<meta property="og:locale" content={site.locale.replace("-", "_")} />
|
|
66
|
+
<meta property="og:title" content={plain(title)} />
|
|
67
|
+
<meta property="og:description" content={description} />
|
|
68
|
+
{canonical && <meta property="og:url" content={canonical} />}
|
|
69
|
+
<meta property="og:image" content={shareImage} />
|
|
70
|
+
<meta property="og:image:alt" content={imageAlt} />
|
|
71
|
+
{publishedTime && <meta property="article:published_time" content={publishedTime.toISOString()} />}
|
|
72
|
+
{author && <meta property="article:author" content={author} />}
|
|
73
|
+
|
|
74
|
+
<meta name="twitter:card" content="summary_large_image" />
|
|
75
|
+
<meta name="twitter:title" content={plain(title)} />
|
|
76
|
+
<meta name="twitter:description" content={description} />
|
|
77
|
+
<meta name="twitter:image" content={shareImage} />
|
|
78
|
+
<meta name="twitter:image:alt" content={imageAlt} />
|
|
79
|
+
{
|
|
80
|
+
starterNotice && (
|
|
81
|
+
<script is:inline>
|
|
82
|
+
try {
|
|
83
|
+
if (localStorage.getItem("starter-notice") === "hidden") document.documentElement.classList.add("starter-notice-hidden");
|
|
84
|
+
} catch {}
|
|
85
|
+
</script>
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
</head>
|
|
89
|
+
<body>
|
|
90
|
+
<Scripts placement="body-start" />
|
|
91
|
+
<Header overlay={overlayHeader} />
|
|
92
|
+
<main id="main" tabindex="-1">
|
|
93
|
+
<slot />
|
|
94
|
+
</main>
|
|
95
|
+
<Footer />
|
|
96
|
+
<Scripts placement="body-end" />
|
|
97
|
+
</body>
|
|
98
|
+
</html>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { getCollection, type CollectionEntry } from "astro:content";
|
|
2
|
+
import { withBase } from "./site";
|
|
3
|
+
|
|
4
|
+
export type Post = CollectionEntry<"journal">;
|
|
5
|
+
|
|
6
|
+
/** Published journal stories, newest first. Drafts are visible in development only. */
|
|
7
|
+
export async function getPosts(): Promise<Post[]> {
|
|
8
|
+
const posts = await getCollection("journal", (post) => import.meta.env.DEV || !post.data.draft);
|
|
9
|
+
return posts.sort((a, b) => b.data.date.getTime() - a.data.date.getTime());
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** A story's address on this site, including the base path. */
|
|
13
|
+
export function postUrl(post: Post): string {
|
|
14
|
+
return withBase(`/journal/${post.id}/`);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** "Pattern cutting" → "pattern-cutting". */
|
|
18
|
+
export function tagSlug(tag: string): string {
|
|
19
|
+
return tag
|
|
20
|
+
.normalize("NFKD")
|
|
21
|
+
.replace(/[̀-ͯ]/g, "")
|
|
22
|
+
.toLowerCase()
|
|
23
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
24
|
+
.replace(/^-+|-+$/g, "");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** The page listing every story filed under `tag`, including the base path. */
|
|
28
|
+
export function tagUrl(tag: string): string {
|
|
29
|
+
return withBase(`/journal/tags/${tagSlug(tag)}/`);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Every tag used by `posts`, alphabetically, with the stories that carry it (newest first). */
|
|
33
|
+
export function postsByTag(posts: Post[]): Array<{ tag: string; slug: string; posts: Post[] }> {
|
|
34
|
+
const tags = new Map<string, { tag: string; slug: string; posts: Post[] }>();
|
|
35
|
+
|
|
36
|
+
for (const post of posts) {
|
|
37
|
+
for (const tag of post.data.tags) {
|
|
38
|
+
const slug = tagSlug(tag);
|
|
39
|
+
if (!slug) continue;
|
|
40
|
+
if (!tags.has(slug)) tags.set(slug, { tag, slug, posts: [] });
|
|
41
|
+
tags.get(slug)!.posts.push(post);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return [...tags.values()].sort((a, b) => a.tag.localeCompare(b.tag));
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getCollection, getEntry, type CollectionEntry } from "astro:content";
|
|
2
|
+
|
|
3
|
+
export type Lookbook = CollectionEntry<"lookbooks">;
|
|
4
|
+
|
|
5
|
+
/** Published lookbooks, newest season first. Drafts are visible in development only. */
|
|
6
|
+
export async function getLookbooks(): Promise<Lookbook[]> {
|
|
7
|
+
const lookbooks = await getCollection("lookbooks", (entry) => import.meta.env.DEV || !entry.data.draft);
|
|
8
|
+
return lookbooks.sort((a, b) => b.data.date.getTime() - a.data.date.getTime());
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The lookbook a section points at. Content writes a file name
|
|
13
|
+
* ("aw26-the-long-afternoon"); once validated it arrives as a reference
|
|
14
|
+
* ({ collection, id }). Both work; without one, the newest lookbook.
|
|
15
|
+
*/
|
|
16
|
+
export async function findLookbook(ref: string | { id: string } | undefined): Promise<Lookbook | undefined> {
|
|
17
|
+
const id = typeof ref === "string" ? ref : ref?.id;
|
|
18
|
+
if (id) return getEntry("lookbooks", id);
|
|
19
|
+
return (await getLookbooks())[0];
|
|
20
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// Small helpers shared by layouts and sections. Site settings, navigation and
|
|
2
|
+
// stockists are read from src/data/*.json — components never hard-code copy.
|
|
3
|
+
|
|
4
|
+
import { Marked } from "marked";
|
|
5
|
+
import siteData from "../data/site.json";
|
|
6
|
+
import navigationData from "../data/navigation.json";
|
|
7
|
+
import stockistsData from "../data/stockists.json";
|
|
8
|
+
import shotList from "../../galley/photography/shots.json";
|
|
9
|
+
|
|
10
|
+
export const site = siteData;
|
|
11
|
+
export const navigation = navigationData;
|
|
12
|
+
export const labels = siteData.labels;
|
|
13
|
+
|
|
14
|
+
/** Stockists, grouped by town (src/data/stockists.json). */
|
|
15
|
+
export interface StockistGroup {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
note?: string;
|
|
19
|
+
items: Array<{ name: string; address?: string; note?: string; href?: string }>;
|
|
20
|
+
}
|
|
21
|
+
export const stockists: StockistGroup[] = stockistsData.groups;
|
|
22
|
+
|
|
23
|
+
export type Tone = "default" | "muted" | "inverse" | "accent";
|
|
24
|
+
export interface Link {
|
|
25
|
+
label: string;
|
|
26
|
+
href: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** An image a section shows: a path from the site root and its alt text. */
|
|
30
|
+
export interface Picture {
|
|
31
|
+
image: string;
|
|
32
|
+
imageAlt: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** Width / height of the named crops content can choose ("portrait" → 4/5). */
|
|
36
|
+
export const ratios = {
|
|
37
|
+
portrait: "4/5",
|
|
38
|
+
tall: "2/3",
|
|
39
|
+
square: "1/1",
|
|
40
|
+
landscape: "3/2",
|
|
41
|
+
wide: "16/9",
|
|
42
|
+
panorama: "21/9",
|
|
43
|
+
} as const;
|
|
44
|
+
export type RatioName = keyof typeof ratios;
|
|
45
|
+
|
|
46
|
+
/** Where the subject of a photograph sits, for crops that cut into it. */
|
|
47
|
+
export const focusPositions = { left: "28% 50%", center: "50% 50%", right: "72% 50%" } as const;
|
|
48
|
+
export type Focus = keyof typeof focusPositions;
|
|
49
|
+
|
|
50
|
+
/** Each photograph's focus point from galley/photography/shots.json, by its public path. */
|
|
51
|
+
const shotFocus = new Map(shotList.shots.map((shot) => [shot.file.replace(/^public/, ""), `${Math.round(shot.focus.x * 100)}% ${Math.round(shot.focus.y * 100)}%`]));
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Where a crop is anchored: the side an editor chose (left, right), or else
|
|
55
|
+
* the photograph's own focus point from the shot list, so heads and garments
|
|
56
|
+
* stay in frame at every ratio; the middle for a picture not in the list.
|
|
57
|
+
*/
|
|
58
|
+
export function focusFor(src: string, focus: Focus = "center"): string {
|
|
59
|
+
return focus !== "center" ? focusPositions[focus] : (shotFocus.get(src) ?? focusPositions.center);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Whether a link leaves the site (opens elsewhere). */
|
|
63
|
+
export function isExternal(href: string): boolean {
|
|
64
|
+
return /^https?:\/\//.test(href);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** A slim, dismissible bar above the header. */
|
|
68
|
+
export interface StarterNotice {
|
|
69
|
+
/** Names the bar for screen readers. */
|
|
70
|
+
label: string;
|
|
71
|
+
text: string;
|
|
72
|
+
link?: Link;
|
|
73
|
+
/** Label of the button that hides it. */
|
|
74
|
+
dismiss: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The notice the template's demo shows (`starterNotice` in site.json). Delete
|
|
79
|
+
* that entry and the bar, and its few lines of script, are gone.
|
|
80
|
+
*/
|
|
81
|
+
export const starterNotice = (siteData as { starterNotice?: StarterNotice }).starterNotice;
|
|
82
|
+
|
|
83
|
+
/** Replace `{name}` placeholders in a label, e.g. "Page {current} of {total}". */
|
|
84
|
+
export function fill(template: string, values: Record<string, string | number>): string {
|
|
85
|
+
return template.replace(/\{(\w+)\}/g, (match, key: string) =>
|
|
86
|
+
key in values ? String(values[key]) : match,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The site's base path without a trailing slash: "" when the site is served
|
|
92
|
+
* from the root of its domain, "/repo" for a GitHub Pages project site.
|
|
93
|
+
* Set with `base` in astro.config.ts or `astro build --base /repo`.
|
|
94
|
+
*/
|
|
95
|
+
const basePath = import.meta.env.BASE_URL.replace(/\/+$/, "");
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Prefix a root-relative path ("/about/", "/images/x.svg") with the base
|
|
99
|
+
* path. Content always writes links and images from the site root; every
|
|
100
|
+
* component passes them through here, so the same content works at a
|
|
101
|
+
* domain's root and under a sub-path. Other values (https:, mailto:, tel:,
|
|
102
|
+
* #anchors, "//host") are returned unchanged. Pass content paths only:
|
|
103
|
+
* Astro.url and paginate() URLs already include the base.
|
|
104
|
+
*/
|
|
105
|
+
export function withBase(path: string): string;
|
|
106
|
+
export function withBase(path: string | undefined): string | undefined;
|
|
107
|
+
export function withBase(path: string | undefined): string | undefined {
|
|
108
|
+
if (!path || !basePath || !path.startsWith("/") || path.startsWith("//")) return path;
|
|
109
|
+
return `${basePath}${path}`;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Links and images written in markdown fields go through withBase() too.
|
|
113
|
+
const markdownParser = new Marked({
|
|
114
|
+
walkTokens(token) {
|
|
115
|
+
if (token.type === "link" || token.type === "image") token.href = withBase(token.href);
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
/** Markdown → HTML for longer text fields (story sections). */
|
|
120
|
+
export function markdown(text: string): string {
|
|
121
|
+
return markdownParser.parse(text, { async: false });
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** Inline markdown → HTML for one-line fields, so `*word*` becomes emphasis. */
|
|
125
|
+
export function inline(text: string): string {
|
|
126
|
+
return markdownParser.parseInline(text, { async: false });
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** Strip inline markdown for places that need plain text (alt, aria, meta). */
|
|
130
|
+
export function plain(text: string): string {
|
|
131
|
+
return text.replace(/[*_`]/g, "");
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** Split plain text into paragraphs on blank lines. */
|
|
135
|
+
export function paragraphs(text: string | undefined): string[] {
|
|
136
|
+
if (!text) return [];
|
|
137
|
+
return text
|
|
138
|
+
.split(/\n\s*\n/)
|
|
139
|
+
.map((part) => part.trim())
|
|
140
|
+
.filter(Boolean);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const dateFormat = new Intl.DateTimeFormat(siteData.locale, { dateStyle: "long" });
|
|
144
|
+
|
|
145
|
+
export function formatDate(date: Date): string {
|
|
146
|
+
return dateFormat.format(date);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Absolute URL on the public site, for canonical and Open Graph tags. The
|
|
151
|
+
* origin is `site` (from site.json, or `astro build --site …`); `path` must
|
|
152
|
+
* already include the base path (Astro.url.pathname does; use withBase()
|
|
153
|
+
* for content paths).
|
|
154
|
+
*/
|
|
155
|
+
export function absolute(path: string): string {
|
|
156
|
+
return new URL(path, import.meta.env.SITE ?? siteData.url).href;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** Whether a nav link points at the current page or one of its children. */
|
|
160
|
+
export function isCurrent(href: string, pathname: string): boolean {
|
|
161
|
+
const normal = (value: string) => (value.endsWith("/") ? value : `${value}/`);
|
|
162
|
+
const target = normal(withBase(href));
|
|
163
|
+
if (href === "/") return normal(pathname) === target;
|
|
164
|
+
return normal(pathname).startsWith(target);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** "/collections/x/" — the address of a lookbook, including the base path. */
|
|
168
|
+
export function lookbookUrl(id: string): string {
|
|
169
|
+
return withBase(`/collections/${id}/`);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** Two-digit look numbers: 1 → "01". */
|
|
173
|
+
export function lookNumber(index: number): string {
|
|
174
|
+
return String(index + 1).padStart(2, "0");
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** Words-per-minute estimate for a markdown body. */
|
|
178
|
+
export function readingMinutes(body: string | undefined): number {
|
|
179
|
+
const words = (body ?? "").split(/\s+/).filter(Boolean).length;
|
|
180
|
+
return Math.max(1, Math.round(words / 220));
|
|
181
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The not-found page, written in src/content/pages/404.md.
|
|
3
|
+
import { getEntry } from "astro:content";
|
|
4
|
+
import Base from "../layouts/Base.astro";
|
|
5
|
+
import PageEntry from "../components/PageEntry.astro";
|
|
6
|
+
|
|
7
|
+
const page = await getEntry("pages", "404");
|
|
8
|
+
if (!page) throw new Error("src/content/pages/404.md is missing.");
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<Base title={page.data.title} description={page.data.description} image={page.data.image} noindex overlayHeader={page.data.sections[0]?.type === "campaign-hero"}>
|
|
12
|
+
<PageEntry page={page} />
|
|
13
|
+
</Base>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
// Every entry in src/content/pages/ becomes a page: index.md is "/",
|
|
3
|
+
// atelier.md is "/atelier/", a/b.md is "/a/b/". collections.md, journal.md
|
|
4
|
+
// and 404.md are rendered by collections/index.astro, journal/[...page].astro
|
|
5
|
+
// and 404.astro.
|
|
6
|
+
import { getCollection, type CollectionEntry } from "astro:content";
|
|
7
|
+
import Base from "../layouts/Base.astro";
|
|
8
|
+
import PageEntry from "../components/PageEntry.astro";
|
|
9
|
+
|
|
10
|
+
export async function getStaticPaths() {
|
|
11
|
+
const pages = await getCollection("pages", (page) => !["404", "journal", "collections"].includes(page.id));
|
|
12
|
+
return pages.map((page) => ({
|
|
13
|
+
params: { slug: page.id === "index" ? undefined : page.id },
|
|
14
|
+
props: { page },
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface Props {
|
|
19
|
+
page: CollectionEntry<"pages">;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const { page } = Astro.props;
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<Base
|
|
26
|
+
title={page.data.title}
|
|
27
|
+
description={page.data.description}
|
|
28
|
+
image={page.data.image}
|
|
29
|
+
noindex={page.data.noindex}
|
|
30
|
+
bareTitle={page.id === "index"}
|
|
31
|
+
overlayHeader={page.data.sections[0]?.type === "campaign-hero"}
|
|
32
|
+
>
|
|
33
|
+
<PageEntry page={page} />
|
|
34
|
+
</Base>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
// One lookbook per file in src/content/lookbooks/, at /collections/<file name>/.
|
|
3
|
+
import { getCollection, type CollectionEntry } from "astro:content";
|
|
4
|
+
import Base from "../../layouts/Base.astro";
|
|
5
|
+
import LookbookEntry from "../../components/LookbookEntry.astro";
|
|
6
|
+
import { fill, labels } from "../../lib/site";
|
|
7
|
+
|
|
8
|
+
export async function getStaticPaths() {
|
|
9
|
+
const lookbooks = await getCollection("lookbooks", (entry) => import.meta.env.DEV || !entry.data.draft);
|
|
10
|
+
return lookbooks.map((lookbook) => ({ params: { slug: lookbook.id }, props: { lookbook } }));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface Props {
|
|
14
|
+
lookbook: CollectionEntry<"lookbooks">;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const { lookbook } = Astro.props;
|
|
18
|
+
const data = lookbook.data;
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
<Base title={fill(labels.lookbooks.title, { title: data.title, season: data.season })} description={data.summary} image={data.cover} imageAlt={data.coverAlt}>
|
|
22
|
+
<LookbookEntry {...data} />
|
|
23
|
+
</Base>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The collections page: the sections of src/content/pages/collections.md,
|
|
3
|
+
// then every published lookbook, newest season first.
|
|
4
|
+
import { getEntry } from "astro:content";
|
|
5
|
+
import Base from "../../layouts/Base.astro";
|
|
6
|
+
import PageEntry from "../../components/PageEntry.astro";
|
|
7
|
+
import LookbookCard from "../../components/LookbookCard.astro";
|
|
8
|
+
import { getLookbooks } from "../../lib/lookbooks";
|
|
9
|
+
import { labels } from "../../lib/site";
|
|
10
|
+
|
|
11
|
+
const entry = await getEntry("pages", "collections");
|
|
12
|
+
if (!entry) throw new Error("src/content/pages/collections.md is missing.");
|
|
13
|
+
const lookbooks = await getLookbooks();
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<Base
|
|
17
|
+
title={entry.data.title}
|
|
18
|
+
description={entry.data.description}
|
|
19
|
+
image={entry.data.image}
|
|
20
|
+
noindex={entry.data.noindex}
|
|
21
|
+
overlayHeader={entry.data.sections[0]?.type === "campaign-hero"}
|
|
22
|
+
>
|
|
23
|
+
<PageEntry page={entry}>
|
|
24
|
+
<section class="section section--free tone-default collections" aria-label={labels.lookbooks.list}>
|
|
25
|
+
<div class="container">
|
|
26
|
+
{
|
|
27
|
+
lookbooks.length > 0 ? (
|
|
28
|
+
<ul class="collections__list" role="list">
|
|
29
|
+
{lookbooks.map((lookbook, i) => (
|
|
30
|
+
<li>
|
|
31
|
+
<LookbookCard lookbook={lookbook} eager={i === 0} />
|
|
32
|
+
</li>
|
|
33
|
+
))}
|
|
34
|
+
</ul>
|
|
35
|
+
) : (
|
|
36
|
+
<p class="lede">{labels.lookbooks.empty}</p>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
</div>
|
|
40
|
+
</section>
|
|
41
|
+
</PageEntry>
|
|
42
|
+
</Base>
|
|
43
|
+
|
|
44
|
+
<style>
|
|
45
|
+
.collections__list {
|
|
46
|
+
display: grid;
|
|
47
|
+
gap: var(--space-2xl) var(--gutter);
|
|
48
|
+
padding: 0;
|
|
49
|
+
list-style: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (min-width: 56rem) {
|
|
53
|
+
.collections__list {
|
|
54
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.collections__list > li:nth-child(odd) {
|
|
58
|
+
grid-column: 1 / span 6;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.collections__list > li:nth-child(even) {
|
|
62
|
+
grid-column: 8 / span 5;
|
|
63
|
+
margin-block-start: var(--space-section);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The journal index: the sections of src/content/pages/journal.md, the
|
|
3
|
+
// topics (tags) in use, then every published story, `journal.pageSize`
|
|
4
|
+
// (site.json) per page — /journal/, /journal/2/, …
|
|
5
|
+
import type { GetStaticPaths, Page } from "astro";
|
|
6
|
+
import { getEntry } from "astro:content";
|
|
7
|
+
import Base from "../../layouts/Base.astro";
|
|
8
|
+
import PageEntry from "../../components/PageEntry.astro";
|
|
9
|
+
import PostList from "../../components/PostList.astro";
|
|
10
|
+
import Tags from "../../components/Tags.astro";
|
|
11
|
+
import { getPosts, postsByTag, type Post } from "../../lib/journal";
|
|
12
|
+
import { fill, labels, site } from "../../lib/site";
|
|
13
|
+
|
|
14
|
+
export const getStaticPaths = (async ({ paginate }) => {
|
|
15
|
+
const posts = await getPosts();
|
|
16
|
+
const tags = postsByTag(posts).map((entry) => entry.tag);
|
|
17
|
+
return paginate(posts, { pageSize: site.journal.pageSize, props: { tags } });
|
|
18
|
+
}) satisfies GetStaticPaths;
|
|
19
|
+
|
|
20
|
+
interface Props {
|
|
21
|
+
page: Page<Post>;
|
|
22
|
+
tags: string[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const { page: listing, tags } = Astro.props;
|
|
26
|
+
const entry = await getEntry("pages", "journal");
|
|
27
|
+
if (!entry) throw new Error("src/content/pages/journal.md is missing.");
|
|
28
|
+
const title =
|
|
29
|
+
listing.currentPage > 1
|
|
30
|
+
? `${entry.data.title} — ${fill(labels.journal.pageOf, { current: listing.currentPage, total: listing.lastPage })}`
|
|
31
|
+
: entry.data.title;
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
<Base
|
|
35
|
+
title={title}
|
|
36
|
+
description={entry.data.description}
|
|
37
|
+
image={entry.data.image}
|
|
38
|
+
noindex={entry.data.noindex}
|
|
39
|
+
overlayHeader={entry.data.sections[0]?.type === "campaign-hero"}
|
|
40
|
+
>
|
|
41
|
+
<PageEntry page={entry}>
|
|
42
|
+
<section class="section section--free tone-default journal-index" aria-label={labels.journal.allPosts}>
|
|
43
|
+
<div class="container">
|
|
44
|
+
<Tags tags={tags} label={labels.journal.topics} class="journal-index__topics" />
|
|
45
|
+
<PostList listing={listing} lead />
|
|
46
|
+
</div>
|
|
47
|
+
</section>
|
|
48
|
+
</PageEntry>
|
|
49
|
+
</Base>
|
|
50
|
+
|
|
51
|
+
<style>
|
|
52
|
+
.journal-index {
|
|
53
|
+
padding-block-start: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.journal-index :global(.journal-index__topics) {
|
|
57
|
+
margin-block-end: var(--space-xl);
|
|
58
|
+
}
|
|
59
|
+
</style>
|