edit full article archive to publication standard
Build and deploy / deploy (push) Successful in 18s

This commit is contained in:
2026-07-31 23:08:19 +03:00
parent 440c8721dc
commit 7c5b19c960
28 changed files with 583 additions and 39 deletions
+7 -1
View File
@@ -1,5 +1,6 @@
import articles from '../data/articles.json';
import { editorialRevisions } from '../data/editorial-revisions.mjs';
import { cleanReaderHtml } from './editorial-content.mjs';
const revisionBySlug = new Map(
editorialRevisions.map((revision) => [revision.slug, revision]),
@@ -7,7 +8,12 @@ const revisionBySlug = new Map(
const publishedArticles = articles.map((article) => ({
...article,
...revisionBySlug.get(article.slug),
...(() => {
const revision = revisionBySlug.get(article.slug);
return revision
? { ...revision, contentHtml: cleanReaderHtml(revision.contentHtml) }
: {};
})(),
}));
export function getArticles() {