@sarimarcus/content-sites-tourism 0.37.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All packages in the platform release in lockstep; entries are per release version.
|
|
4
4
|
|
|
5
|
+
## 0.38.0 (2026-10-15)
|
|
6
|
+
|
|
7
|
+
- `ArticleCardGrid` takes its "Updated" test from core `isUpdatedAfterPublication`; output unchanged (SLA-3120).
|
|
8
|
+
|
|
5
9
|
## 0.37.0 (2026-10-14)
|
|
6
10
|
|
|
7
11
|
- `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.
|
|
3
|
+
"version": "0.38.0",
|
|
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.
|
|
40
|
-
"@sarimarcus/content-sites-ui": "0.
|
|
39
|
+
"@sarimarcus/content-sites-core": "0.38.0",
|
|
40
|
+
"@sarimarcus/content-sites-ui": "0.38.0"
|
|
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
|
|
|
@@ -43,8 +44,7 @@ function formatCardDate(dateStr: string | undefined): string {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
const items = articles.map(({ data: a }) => {
|
|
46
|
-
|
|
47
|
-
const updated = Boolean(a.dateModified && (!a.datePublished || a.dateModified.slice(0, 10) !== a.datePublished.slice(0, 10)));
|
|
47
|
+
const updated = isUpdatedAfterPublication(a);
|
|
48
48
|
const dateTime = (updated ? a.dateModified : a.datePublished) ?? '';
|
|
49
49
|
return {
|
|
50
50
|
href: url(routePath('articles', a.slug, routes)),
|