@sarimarcus/content-sites-tourism 0.37.0 → 0.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.38.1 (2026-10-15)
6
+
7
+ - `ArticleCardGrid` lays cards out in three columns from the `lg` breakpoint (`grid gap-6 sm:grid-cols-2 lg:grid-cols-3`) and takes an optional `class` to override the grid (SLA-3125).
8
+
9
+ ## 0.38.0 (2026-10-15)
10
+
11
+ - `ArticleCardGrid` takes its "Updated" test from core `isUpdatedAfterPublication`; output unchanged (SLA-3120).
12
+
5
13
  ## 0.37.0 (2026-10-14)
6
14
 
7
15
  - `llms`: new export with `tourismLlmsTxt(input)`, the llms.txt both tourism sites kept as a hand-written `public/llms.txt`. Summary counts, per-neighborhood counts, item lists and the AI Agents block (from the site's `webmcp-tools.json` snapshot) are derived from the collections; hand-written sections come in as data (SLA-3083).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-tourism",
3
- "version": "0.37.0",
3
+ "version": "0.38.1",
4
4
  "description": "City-tourism vertical: city-entity components, pages templates and utilities for the tourism sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "peerDependencies": {
37
37
  "astro": "^7.0.6",
38
38
  "tailwindcss": "^4.1.18",
39
- "@sarimarcus/content-sites-core": "0.37.0",
40
- "@sarimarcus/content-sites-ui": "0.37.0"
39
+ "@sarimarcus/content-sites-core": "0.38.1",
40
+ "@sarimarcus/content-sites-ui": "0.38.1"
41
41
  }
42
42
  }
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import type { ImageMetadata } from 'astro';
7
7
  import { ArticleGrid } from '@sarimarcus/content-sites-ui/editorial';
8
+ import { isUpdatedAfterPublication } from '@sarimarcus/content-sites-core/articles';
8
9
  import { routePath, url, type SiteRoutes } from '@sarimarcus/content-sites-core/url';
9
10
  import { LABELS } from '../internal/labels';
10
11
 
@@ -29,9 +30,11 @@ interface Props {
29
30
  updatedLabel?: string;
30
31
  /** Overrides of the `articles` route. */
31
32
  routes?: SiteRoutes;
33
+ /** Grid classes; defaults to 1/2/3 columns. */
34
+ class?: string;
32
35
  }
33
36
 
34
- const { articles, articleImages, timeZone = 'Europe/Madrid', readLabel = LABELS.articleCardGrid.readLabel, updatedLabel = LABELS.articleCardGrid.updatedLabel, routes } = Astro.props;
37
+ const { articles, articleImages, timeZone = 'Europe/Madrid', readLabel = LABELS.articleCardGrid.readLabel, updatedLabel = LABELS.articleCardGrid.updatedLabel, routes, class: className = 'grid gap-6 sm:grid-cols-2 lg:grid-cols-3' } = Astro.props;
35
38
 
36
39
  function formatCardDate(dateStr: string | undefined): string {
37
40
  if (!dateStr) return '';
@@ -43,8 +46,7 @@ function formatCardDate(dateStr: string | undefined): string {
43
46
  }
44
47
 
45
48
  const items = articles.map(({ data: a }) => {
46
- // Compare calendar days, not raw strings.
47
- const updated = Boolean(a.dateModified && (!a.datePublished || a.dateModified.slice(0, 10) !== a.datePublished.slice(0, 10)));
49
+ const updated = isUpdatedAfterPublication(a);
48
50
  const dateTime = (updated ? a.dateModified : a.datePublished) ?? '';
49
51
  return {
50
52
  href: url(routePath('articles', a.slug, routes)),
@@ -60,4 +62,4 @@ const items = articles.map(({ data: a }) => {
60
62
  });
61
63
  ---
62
64
 
63
- <ArticleGrid articles={items} readLabel={readLabel} updatedLabel={updatedLabel} />
65
+ <ArticleGrid articles={items} readLabel={readLabel} updatedLabel={updatedLabel} class={className} />