diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0beb83..8cc704a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,5 +17,5 @@ jobs: working-directory: packages/fonts - name: Packages contain what they should run: | - (cd packages/team && npm pack --dry-run 2>&1 | grep -E "bin/ghdash-team.mjs|components/TeamGrid.astro|templates/team/index.astro") - (cd packages/fonts && npm pack --dry-run 2>&1 | grep -E "bin/ghdash-fonts.mjs|lib/build.mjs|components/FontStyles.astro") + (cd packages/team && npm pack --dry-run 2>&1 | grep -E "bin/gitdash-team.mjs|components/TeamGrid.astro|templates/team/index.astro") + (cd packages/fonts && npm pack --dry-run 2>&1 | grep -E "bin/gitdash-fonts.mjs|lib/build.mjs|components/FontStyles.astro") diff --git a/README.md b/README.md index aae4c6c..85915bc 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ -# GHDash plugins +# GitDash plugins -Add-ons for [EmDash](https://github.com/emdash-cms/emdash) sites, including sites on GitHub Pages built with [GHDash](https://github.com/Digital-Defiance/ghdash). +Add-ons for [EmDash](https://github.com/emdash-cms/emdash) sites, including sites on GitHub Pages built with [GitDash](https://github.com/Digital-Defiance/gitdash). + +GHDash is now GitDash. The packages were published as `@digitaldefiance/ghdash-team` and `@digitaldefiance/ghdash-fonts` before the rename and are now `@digitaldefiance/gitdash-team` and `@digitaldefiance/gitdash-fonts`. To move a site over, swap the dependency, then change `ghdash-` to `gitdash-` in imports and build scripts. The old command names still work. | Package | What it does | | --- | --- | -| [`@digitaldefiance/ghdash-team`](packages/team) | A team page: collection, grid component, department filter and a page per member | -| [`@digitaldefiance/ghdash-fonts`](packages/fonts) | Pick Google Fonts in the studio and host them on your own site | +| [`@digitaldefiance/gitdash-team`](packages/team) | A team page: collection, grid component, department filter and a page per member | +| [`@digitaldefiance/gitdash-fonts`](packages/fonts) | Pick Google Fonts in the studio and host them on your own site | -Both are edited in the studio like any other content, so they work on a static GitHub Pages site. See each package's README for setup. A working example is the [demo site](https://digital-defiance.github.io/GHDash-example/). +Both are edited in the studio like any other content, so they work on a static GitHub Pages site. See each package's README for setup. A working example is the [demo site](https://digital-defiance.github.io/GitDash-example/). ## Development @@ -17,7 +19,7 @@ cd packages/fonts && npm test ## Releases -A tag `team-v` or `fonts-v` publishes that package to npm through the workflow in `.github/workflows/publish.yml`. The tag has to match the version in the package's `package.json`. Publishing uses npm trusted publishing, so there is no token. The first version of each package has to be published by hand (`npm publish --access public --provenance=false` from the package folder) before the trusted publisher can be added on npmjs.com (organization `Digital-Defiance`, repository `ghdash-plugins`, workflow `publish.yml`). +A tag `team-v` or `fonts-v` publishes that package to npm through the workflow in `.github/workflows/publish.yml`. The tag has to match the version in the package's `package.json`. Publishing uses npm trusted publishing, so there is no token. The first version of each package has to be published by hand (`npm publish --access public --provenance=false` from the package folder) before the trusted publisher can be added on npmjs.com (organization `Digital-Defiance`, repository `gitdash-plugins`, workflow `publish.yml`). ## License diff --git a/packages/fonts/README.md b/packages/fonts/README.md index 95f043a..1ae69d6 100644 --- a/packages/fonts/README.md +++ b/packages/fonts/README.md @@ -1,27 +1,27 @@ -# @digitaldefiance/ghdash-fonts +# @digitaldefiance/gitdash-fonts -Choose Google Fonts in the studio and serve them from your own site, for [EmDash](https://github.com/emdash-cms/emdash) and [GHDash](https://github.com/Digital-Defiance/ghdash) sites. It covers the main features of the WordPress plugin Fonts Plugin: font choice, per-element typography, and local hosting so visitors make no requests to Google. +Choose Google Fonts in the studio and serve them from your own site, for [EmDash](https://github.com/emdash-cms/emdash) and [GitDash](https://github.com/Digital-Defiance/gitdash) sites. It covers the main features of the WordPress plugin Fonts Plugin: font choice, per-element typography, and local hosting so visitors make no requests to Google. ## Install ```sh -npm install @digitaldefiance/ghdash-fonts -npx ghdash-fonts init # adds a "fonts" collection with one entry to content/ +npm install @digitaldefiance/gitdash-fonts +npx gitdash-fonts init # adds a "fonts" collection with one entry to content/ ``` Add the component to your layout's ``, after your other stylesheets: ```astro --- -import FontStyles from "@digitaldefiance/ghdash-fonts/FontStyles.astro"; +import FontStyles from "@digitaldefiance/gitdash-fonts/FontStyles.astro"; --- ``` -Run `ghdash-fonts build` before `astro build`: +Run `gitdash-fonts build` before `astro build`: ```json -"build": "... && ghdash-fonts build && astro build && ..." +"build": "... && gitdash-fonts build && astro build && ..." ``` ## Use @@ -40,7 +40,7 @@ Open the **Fonts** collection in the studio, edit the entry, and commit. The nex | Adobe Fonts web project ID, Adobe fonts | `abc1def`, `proxima-nova`: list the fonts from Adobe, then use them in the font fields above | | Other elements | one per line: `selector \| Font family \| weight`, such as `blockquote \| Lora \| 400` | -The CSS variables `--ghdash-body-font` and `--ghdash-heading-font` are also set, for use in your own styles. +The CSS variables `--gitdash-body-font` and `--gitdash-heading-font` are also set, for use in your own styles. The older names `--ghdash-body-font` and `--ghdash-heading-font` still work. If your theme sets fonts with a more specific selector (a class, for example), the settings above won't override it. Use the "Other elements" field to target that selector. @@ -48,7 +48,7 @@ Values are checked before they are written to the stylesheet. A font name, size, ## Adobe Fonts -Adobe's licence doesn't allow self-hosting, so fonts from an Adobe web project load from `use.typekit.net`, and visitors make a request to Adobe. Google fonts are still served from your site. Create a web project at fonts.adobe.com, add the domains your site uses, and copy the project ID into "Adobe Fonts web project ID". List the Adobe font names (as shown in the project's CSS, like `proxima-nova`) in "Fonts that come from Adobe". If you already ran `ghdash-fonts init`, run it again to add the two new fields. +Adobe's licence doesn't allow self-hosting, so fonts from an Adobe web project load from `use.typekit.net`, and visitors make a request to Adobe. Google fonts are still served from your site. Create a web project at fonts.adobe.com, add the domains your site uses, and copy the project ID into "Adobe Fonts web project ID". List the Adobe font names (as shown in the project's CSS, like `proxima-nova`) in "Fonts that come from Adobe". If you already ran `gitdash-fonts init`, run it again to add the two new fields. ## Your own font files diff --git a/packages/fonts/bin/ghdash-fonts.mjs b/packages/fonts/bin/ghdash-fonts.mjs deleted file mode 100755 index cd47eb9..0000000 --- a/packages/fonts/bin/ghdash-fonts.mjs +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env node -// ghdash-fonts init adds a "fonts" collection with one entry to a GHDash site's content/ folder -// ghdash-fonts build downloads the chosen Google Fonts into public/fonts and writes public/fonts/fonts.css -const cmd = process.argv[2]; -if (cmd === "init") await import("../lib/init.mjs"); -else if (cmd === "build") await import("../lib/build.mjs"); -else { - console.error("usage: ghdash-fonts init | build"); - process.exit(1); -} diff --git a/packages/fonts/bin/gitdash-fonts.mjs b/packages/fonts/bin/gitdash-fonts.mjs new file mode 100755 index 0000000..be19f9e --- /dev/null +++ b/packages/fonts/bin/gitdash-fonts.mjs @@ -0,0 +1,10 @@ +#!/usr/bin/env node +// gitdash-fonts init adds a "fonts" collection with one entry to a GitDash site's content/ folder +// gitdash-fonts build downloads the chosen Google Fonts into public/fonts and writes public/fonts/fonts.css +const cmd = process.argv[2]; +if (cmd === "init") await import("../lib/init.mjs"); +else if (cmd === "build") await import("../lib/build.mjs"); +else { + console.error("usage: gitdash-fonts init | build"); + process.exit(1); +} diff --git a/packages/fonts/lib/build.mjs b/packages/fonts/lib/build.mjs index 9e5d775..70a3898 100644 --- a/packages/fonts/lib/build.mjs +++ b/packages/fonts/lib/build.mjs @@ -23,11 +23,11 @@ async function get(url, binary) { rmSync(out, { recursive: true, force: true }); const row = findRow(); if (!row) { - console.log("ghdash-fonts: no published entry in the fonts collection, skipping"); + console.log("gitdash-fonts: no published entry in the fonts collection, skipping"); process.exit(0); } const { settings, warnings } = readSettings(row); -for (const w of warnings) console.warn("ghdash-fonts: WARNING:", w); +for (const w of warnings) console.warn("gitdash-fonts: WARNING:", w); mkdirSync(out, { recursive: true }); const customDir = "custom-fonts"; @@ -36,20 +36,20 @@ if (existsSync(customDir)) { for (const file of readdirSync(customDir)) { const face = parseCustomFontName(file); if (!face) { - if (!file.startsWith(".")) console.warn(`ghdash-fonts: WARNING: ${customDir}/${file} is not named like "Family Name-400.woff2" and was skipped`); + if (!file.startsWith(".")) console.warn(`gitdash-fonts: WARNING: ${customDir}/${file} is not named like "Family Name-400.woff2" and was skipped`); continue; } copyFileSync(join(customDir, file), join(out, `custom-${file}`)); custom.push(face); } - if (custom.length) console.log(`ghdash-fonts: ${custom.length} font file(s) from ${customDir}/`); + if (custom.length) console.log(`gitdash-fonts: ${custom.length} font file(s) from ${customDir}/`); } const faces = []; for (const family of families(settings, custom.map((f) => f.family))) { let res = await get(googleCssUrl(family, settings.weights)); if (res.status === 400) res = await get(googleCssUrl(family)); if (res.status !== 200) { - console.warn(`ghdash-fonts: WARNING: could not find "${family}" on Google Fonts (HTTP ${res.status}); skipped`); + console.warn(`gitdash-fonts: WARNING: could not find "${family}" on Google Fonts (HTTP ${res.status}); skipped`); continue; } const parsed = parseGoogleCss(res.body).filter((f) => settings.subsets.includes(f.subset)); @@ -59,7 +59,7 @@ for (const family of families(settings, custom.map((f) => f.family))) { writeFileSync(join(out, fileName(face)), file.body); faces.push(face); } - console.log(`ghdash-fonts: ${family}: ${parsed.length} file(s)`); + console.log(`gitdash-fonts: ${family}: ${parsed.length} file(s)`); } writeFileSync(join(out, "fonts.css"), `${adobeImport(settings)}${fontFaceCss(faces)}\n${custom.length ? `${customFaceCss(custom)}\n` : ""}${rulesCss(settings)}\n`); -console.log(`ghdash-fonts: wrote ${out}/fonts.css with ${faces.length} font file(s)`); +console.log(`gitdash-fonts: wrote ${out}/fonts.css with ${faces.length} font file(s)`); diff --git a/packages/fonts/lib/css.mjs b/packages/fonts/lib/css.mjs index bb580b0..26c3fd4 100644 --- a/packages/fonts/lib/css.mjs +++ b/packages/fonts/lib/css.mjs @@ -159,8 +159,10 @@ export function rulesCss(s) { .join(";"); const out = []; const root = decl([ - ["--ghdash-body-font", s.bodyFont && stack(s.bodyFont)], - ["--ghdash-heading-font", (s.headingFont || s.bodyFont) && stack(s.headingFont || s.bodyFont)], + ...["gitdash", "ghdash"].flatMap((p) => [ + [`--${p}-body-font`, s.bodyFont && stack(s.bodyFont)], + [`--${p}-heading-font`, (s.headingFont || s.bodyFont) && stack(s.headingFont || s.bodyFont)], + ]), ]); if (root) out.push(`:root{${root}}`); const body = decl([ diff --git a/packages/fonts/lib/init.mjs b/packages/fonts/lib/init.mjs index 95ac059..9224fa6 100644 --- a/packages/fonts/lib/init.mjs +++ b/packages/fonts/lib/init.mjs @@ -1,11 +1,14 @@ -// ghdash-fonts init: adds the "fonts" collection and one entry to content/ through the browser API. -import { readFileSync, writeFileSync, mkdirSync } from "node:fs"; +// gitdash-fonts init: adds the "fonts" collection and one entry to content/ through the browser API. +import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs"; import { createRequire } from "node:module"; import { dirname, join, resolve } from "node:path"; import { pathToFileURL } from "node:url"; import { spawnSync } from "node:child_process"; -const bin = resolve("node_modules/@digitaldefiance/ghdash-pages/bin/ghdash-pages.mjs"); +// The adapter was called ghdash-pages before the GitDash rename. +const ADAPTERS = ["gitdash-pages", "ghdash-pages"]; +const pagesDir = ADAPTERS.map((n) => resolve(`node_modules/@digitaldefiance/${n}`)).find((d) => existsSync(d)) ?? resolve("node_modules/@digitaldefiance/gitdash-pages"); +const bin = ADAPTERS.map((n) => join(pagesDir, `bin/${n}.mjs`)).find((f) => existsSync(f)); for (const cmd of ["build-db", "fetch-browser-api", "studio-assets"]) { const r = spawnSync(process.execPath, [bin, cmd], { stdio: "inherit" }); if (r.status !== 0) process.exit(r.status ?? 1); @@ -13,7 +16,7 @@ for (const cmd of ["build-db", "fetch-browser-api", "studio-assets"]) { const require = createRequire(resolve("package.json")); const sqlite3InitModule = (await import(pathToFileURL(require.resolve("@sqlite.org/sqlite-wasm")).href)).default; const api = await import(pathToFileURL(resolve("public/studio-api/entry.js")).href); -const studioDir = resolve("node_modules/@digitaldefiance/ghdash-pages/studio"); +const studioDir = join(pagesDir, "studio"); const { openDb } = await import(pathToFileURL(join(studioDir, "load-db.js")).href); const { snapshot, filesFromContent, diffFiles } = await import(pathToFileURL(join(studioDir, "tray.js")).href); diff --git a/packages/fonts/package.json b/packages/fonts/package.json index 9fb63ce..ac04d90 100644 --- a/packages/fonts/package.json +++ b/packages/fonts/package.json @@ -1,23 +1,41 @@ { - "name": "@digitaldefiance/ghdash-fonts", - "version": "0.2.0", - "description": "Choose Google Fonts in the studio and serve them from your own site, for EmDash and GHDash.", + "name": "@digitaldefiance/gitdash-fonts", + "version": "0.3.0", + "description": "Choose Google Fonts in the studio and serve them from your own site, for EmDash and GitDash.", "type": "module", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/Digital-Defiance/ghdash-plugins.git", + "url": "git+https://github.com/Digital-Defiance/gitdash-plugins.git", "directory": "packages/fonts" }, - "homepage": "https://github.com/Digital-Defiance/ghdash-plugins/tree/main/packages/fonts#readme", - "keywords": ["emdash", "ghdash", "astro", "fonts", "google-fonts"], - "bin": { "ghdash-fonts": "bin/ghdash-fonts.mjs" }, + "homepage": "https://github.com/Digital-Defiance/gitdash-plugins/tree/main/packages/fonts#readme", + "keywords": [ + "emdash", + "gitdash", + "astro", + "fonts", + "google-fonts" + ], + "bin": { + "gitdash-fonts": "bin/gitdash-fonts.mjs", + "ghdash-fonts": "bin/gitdash-fonts.mjs" + }, "exports": { "./FontStyles.astro": "./components/FontStyles.astro", "./css": "./lib/css.mjs", "./package.json": "./package.json" }, - "files": ["bin", "lib", "components", "README.md"], - "scripts": { "test": "node --test test/*.test.mjs" }, - "peerDependencies": { "astro": ">=5" } + "files": [ + "bin", + "lib", + "components", + "README.md" + ], + "scripts": { + "test": "node --test test/*.test.mjs" + }, + "peerDependencies": { + "astro": ">=5" + } } diff --git a/packages/fonts/test/css.test.mjs b/packages/fonts/test/css.test.mjs index 96440af..503da0c 100644 --- a/packages/fonts/test/css.test.mjs +++ b/packages/fonts/test/css.test.mjs @@ -38,6 +38,7 @@ test("applies body and heading settings, falling back to the body font for headi const css = rulesCss(settings); assert.match(css, /body\{font-family:'Lora',system-ui,sans-serif;font-size:18px\}/); assert.match(css, /h1,h2,h3,h4,h5,h6\{color:#123456;text-transform:uppercase\}/); + assert.match(css, /--gitdash-heading-font:'Lora'/); assert.match(css, /--ghdash-heading-font:'Lora'/); }); diff --git a/packages/team/README.md b/packages/team/README.md index cda9ef6..497f15d 100644 --- a/packages/team/README.md +++ b/packages/team/README.md @@ -1,18 +1,18 @@ -# @digitaldefiance/ghdash-team +# @digitaldefiance/gitdash-team -A team page for [EmDash](https://github.com/emdash-cms/emdash) sites, including sites on GitHub Pages built with [GHDash](https://github.com/Digital-Defiance/ghdash). It is modelled on the features of the WordPress plugin Team Members Pro. +A team page for [EmDash](https://github.com/emdash-cms/emdash) sites, including sites on GitHub Pages built with [GitDash](https://github.com/Digital-Defiance/gitdash). It is modelled on the features of the WordPress plugin Team Members Pro. You get a `team` collection, a `TeamGrid` component, a `/team` page with department filter buttons, and a page for each member. ## Install ```sh -npm install @digitaldefiance/ghdash-team -npx ghdash-team # adds the "team" collection and three sample members to content/ -cp -r node_modules/@digitaldefiance/ghdash-team/templates/team src/pages/team +npm install @digitaldefiance/gitdash-team +npx gitdash-team # adds the "team" collection and three sample members to content/ +cp -r node_modules/@digitaldefiance/gitdash-team/templates/team src/pages/team ``` -`npx ghdash-team` needs a GHDash site (it uses `@digitaldefiance/ghdash-pages` to build the content database). On a regular EmDash site, create the collection in the admin with the fields below instead. +`npx gitdash-team` needs a GitDash site (it uses `@digitaldefiance/gitdash-pages` to build the content database). On a regular EmDash site, create the collection in the admin with the fields below instead. ## Fields @@ -34,7 +34,7 @@ A member that isn't published is not shown. ```astro --- -import TeamGrid from "@digitaldefiance/ghdash-team/TeamGrid.astro"; +import TeamGrid from "@digitaldefiance/gitdash-team/TeamGrid.astro"; --- ``` diff --git a/packages/team/bin/ghdash-team.mjs b/packages/team/bin/gitdash-team.mjs similarity index 88% rename from packages/team/bin/ghdash-team.mjs rename to packages/team/bin/gitdash-team.mjs index eaf2444..5c7d4c3 100755 --- a/packages/team/bin/ghdash-team.mjs +++ b/packages/team/bin/gitdash-team.mjs @@ -1,13 +1,16 @@ #!/usr/bin/env node -// ghdash-team: adds a "team" collection (fields and three sample members) to a GHDash site's content/ folder. -// Run from the site root: npx ghdash-team -import { readFileSync, writeFileSync, mkdirSync } from "node:fs"; +// gitdash-team: adds a "team" collection (fields and three sample members) to a GitDash site's content/ folder. +// Run from the site root: npx gitdash-team +import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs"; import { createRequire } from "node:module"; import { dirname, join, resolve } from "node:path"; import { pathToFileURL } from "node:url"; import { spawnSync } from "node:child_process"; -const bin = resolve("node_modules/@digitaldefiance/ghdash-pages/bin/ghdash-pages.mjs"); +// The adapter was called ghdash-pages before the GitDash rename. +const ADAPTERS = ["gitdash-pages", "ghdash-pages"]; +const pagesDir = ADAPTERS.map((n) => resolve(`node_modules/@digitaldefiance/${n}`)).find((d) => existsSync(d)) ?? resolve("node_modules/@digitaldefiance/gitdash-pages"); +const bin = ADAPTERS.map((n) => join(pagesDir, `bin/${n}.mjs`)).find((f) => existsSync(f)); for (const cmd of ["build-db", "fetch-browser-api", "studio-assets"]) { const r = spawnSync(process.execPath, [bin, cmd], { stdio: "inherit" }); if (r.status !== 0) process.exit(r.status ?? 1); @@ -15,7 +18,7 @@ for (const cmd of ["build-db", "fetch-browser-api", "studio-assets"]) { const require = createRequire(resolve("package.json")); const sqlite3InitModule = (await import(pathToFileURL(require.resolve("@sqlite.org/sqlite-wasm")).href)).default; const api = await import(pathToFileURL(resolve("public/studio-api/entry.js")).href); -const studioDir = resolve("node_modules/@digitaldefiance/ghdash-pages/studio"); +const studioDir = join(pagesDir, "studio"); const { openDb } = await import(pathToFileURL(join(studioDir, "load-db.js")).href); const { snapshot, filesFromContent, diffFiles } = await import(pathToFileURL(join(studioDir, "tray.js")).href); diff --git a/packages/team/package.json b/packages/team/package.json index 63aafd7..6c2e3a7 100644 --- a/packages/team/package.json +++ b/packages/team/package.json @@ -1,22 +1,36 @@ { - "name": "@digitaldefiance/ghdash-team", - "version": "0.1.0", - "description": "A team members collection, grid component and pages for EmDash and GHDash sites.", + "name": "@digitaldefiance/gitdash-team", + "version": "0.2.0", + "description": "A team members collection, grid component and pages for EmDash and GitDash sites.", "type": "module", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/Digital-Defiance/ghdash-plugins.git", + "url": "git+https://github.com/Digital-Defiance/gitdash-plugins.git", "directory": "packages/team" }, - "homepage": "https://github.com/Digital-Defiance/ghdash-plugins/tree/main/packages/team#readme", - "keywords": ["emdash", "ghdash", "astro", "team", "staff"], - "bin": { "ghdash-team": "bin/ghdash-team.mjs" }, + "homepage": "https://github.com/Digital-Defiance/gitdash-plugins/tree/main/packages/team#readme", + "keywords": [ + "emdash", + "gitdash", + "astro", + "team", + "staff" + ], + "bin": { + "gitdash-team": "bin/gitdash-team.mjs", + "ghdash-team": "bin/gitdash-team.mjs" + }, "exports": { "./TeamGrid.astro": "./components/TeamGrid.astro", "./package.json": "./package.json" }, - "files": ["bin", "components", "templates", "README.md"], + "files": [ + "bin", + "components", + "templates", + "README.md" + ], "peerDependencies": { "astro": ">=5", "emdash": ">=1.5.0" diff --git a/packages/team/templates/team/[slug].astro b/packages/team/templates/team/[slug].astro index da54062..31e380f 100644 --- a/packages/team/templates/team/[slug].astro +++ b/packages/team/templates/team/[slug].astro @@ -8,7 +8,7 @@ export async function getStaticPaths() { import { getEmDashEntry, decodeSlug } from "emdash"; import { PortableText } from "emdash/ui"; import Base from "../../layouts/Base.astro"; -import TeamGrid from "@digitaldefiance/ghdash-team/TeamGrid.astro"; +import TeamGrid from "@digitaldefiance/gitdash-team/TeamGrid.astro"; const slug = decodeSlug(Astro.params.slug); if (!slug) return Astro.rewrite("/404"); diff --git a/packages/team/templates/team/index.astro b/packages/team/templates/team/index.astro index 4c06e97..00a3b03 100644 --- a/packages/team/templates/team/index.astro +++ b/packages/team/templates/team/index.astro @@ -1,7 +1,7 @@ --- import { getEmDashCollection, getSiteSettings } from "emdash"; import Base from "../../layouts/Base.astro"; -import TeamGrid from "@digitaldefiance/ghdash-team/TeamGrid.astro"; +import TeamGrid from "@digitaldefiance/gitdash-team/TeamGrid.astro"; import { resolveBlogSiteIdentity } from "../../utils/site-identity"; const { entries } = await getEmDashCollection("team", { limit: 1000 });