Skip to content

Commit 14a818a

Browse files
committed
Snakecase
1 parent ce912be commit 14a818a

File tree

2 files changed

+141
-136
lines changed

2 files changed

+141
-136
lines changed

apps/svelte.dev/src/lib/server/content.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ function create_registry() {
201201

202202
for (const frontmatter of Object.values(registry_docs)) {
203203
const json = extract_frontmatter(frontmatter);
204-
json.metadata.description = markdown_to_plain_text(json.metadata.description || '');
204+
json.metadata.description = json.metadata.description;
205+
json.metadata.outdated =
206+
+new Date() - +new Date(json.metadata.updated) > 2 * 365 * 24 * 60 * 60 * 1000;
205207

206208
output.push(json.metadata as unknown as Package);
207209
}

0 commit comments

Comments
 (0)