@grove-dev/astro 0.3.2 → 0.4.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.
@@ -19,6 +19,7 @@ import {
19
19
  formatStars,
20
20
  getOwnerAndRepoFromRepoUrl,
21
21
  getOwnerAvatarUrl,
22
+ projectStackIds,
22
23
  statusDisplay,
23
24
  totalPages,
24
25
  } from "@grove-dev/core";
@@ -42,6 +43,9 @@ export interface DirectorySiteConfig {
42
43
  repoUrl?: string;
43
44
  nav?: Array<{ label: string; href: string }>;
44
45
  facets?: string[];
46
+ analytics?: {
47
+ googleAnalyticsId?: string;
48
+ };
45
49
  footer?: {
46
50
  columns?: Array<{
47
51
  heading: string;
@@ -283,7 +287,7 @@ export function getRecordDetailModel(
283
287
  const description = record.description ?? `${name} on ${site.name}`;
284
288
  const repoUrl = proj?.repoUrl ?? record.links?.github ?? "";
285
289
  const homepageUrl = record.links?.website ?? "";
286
- const stacks = proj?.stacks ?? (proj?.stack ? [proj.stack] : []);
290
+ const stacks = projectStackIds(proj);
287
291
  const platforms = proj?.platforms ?? [];
288
292
  const github = proj?.github?.repository;
289
293
  const stars = github?.stargazers_count ?? 0;