(post: PostMarkdownPost)
| 204 | |
| 205 | /** The post's own body, when daily.dev hosts it. Empty for external articles. */ |
| 206 | const nativeContent = (post: PostMarkdownPost): string => |
| 207 | NATIVE_CONTENT_TYPES.includes(post.type) ? (post.content?.trim() ?? '') : ''; |
| 208 | |
| 209 | const buildFrontmatter = (post: PostMarkdownPost): string[] => { |
| 210 | const lines = ['---']; |