Currently, the blog post content is rendered as HTML from markdown, but there’s no handling for images embedded within the content. The imagesInContent field exists in the blog post schema but isn’t being used in the rendering.
markdownToHtml function in packages/markdown/src/markdown.ts to properly handle image tags in the markdown contentBlogPostPage.astro component to pass the imagesInContent array to the markdownToHtml functionimageReplacePlugin in markdown.ts correctly replaces image URLs in the markdown content
Currently, in packages/frontend/app/src/cms/blog.ts, the excerpt is generated by taking the first 30 words of the entire content, which includes the title. The splitMarkdown function already exists and can correctly extract the intro (content between the title and the next heading).
getAllBlogPosts function in packages/frontend/app/src/cms/blog.ts to use the splitMarkdown function to generate the excerptThere are hardcoded strings in the components that need to be internationalized and moved to the CMS.
BlogPage.astroBlobPostSection.astro (note: there’s a typo in the component name)BlogPostPage.astroblog.ts schema)BlobPostSection.astro renamed to BlogPostSection.astrogetBlogPageContent function in packages/frontend/app/src/cms/blog.ts to fetch values from the CMS with fallbacksstring to text with rows: 2)IntroSection.astro component already has the whitespace-pre-line class to preserve whitespace and new lines