Replace the Four Pillars page with the Guide to CommunityRule on the Content page Template.

This commit is contained in:
adilallo committed 2026-11-12 17:57:37 -07:00
1 parent bf9ee79c9f
commit 453139c783
17 files changed
+1005 -32

No files matched your search

+4 -5
View File
@@ -1,5 +1,4 @@
import type { BlogPost } from "./content";
import { markdownToHtml } from "./content";
import type howItWorksPage from "../messages/en/pages/howItWorks.json";
export const HOW_IT_WORKS_SENTINEL_SLUG = "__how-it-works__";
@@ -8,12 +7,12 @@ type HowItWorksMessages = typeof howItWorksPage;
/**
* Builds a {@link BlogPost}-shaped object for static marketing pages that reuse
* blog article chrome (`ContentBanner`, `.post-body`) without a markdown file.
* blog article chrome (`ContentBanner`) without a markdown file.
*/
export function buildHowItWorksSyntheticPost(
page: HowItWorksMessages,
): BlogPost {
const { banner, bodyMarkdown } = page;
const { banner } = page;
return {
slug: HOW_IT_WORKS_SENTINEL_SLUG,
@@ -23,8 +22,8 @@ export function buildHowItWorksSyntheticPost(
author: banner.author,
date: banner.date,
},
content: bodyMarkdown,
htmlContent: markdownToHtml(bodyMarkdown),
content: "",
htmlContent: "",
filePath: "messages/en/pages/howItWorks.json",
lastModified: new Date(banner.date),
};