Skip to content

Commit 1199746

Browse files
authored
chore(blog): generate missing cover images and normalize posts (#53)
1 parent ebdc3b0 commit 1199746

116 files changed

Lines changed: 104 additions & 34 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

scripts/generate-cover.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ async function generateCover(title, subtitle) {
280280

281281
// Parse frontmatter from markdown file
282282
function parseFrontmatter(content) {
283-
const match = content.match(/^---\n([\s\S]*?)\n---/);
283+
// Normalize line endings to handle both Windows (CRLF) and Unix (LF)
284+
const normalizedContent = content.replace(/\r\n/g, "\n");
285+
const match = normalizedContent.match(/^---\n([\s\S]*?)\n---/);
284286
if (!match) return {};
285287

286288
const frontmatter = {};
424 KB

src/content/blog/2012/storing-images-in-azure-blob-storage-with-ease/index.md

Lines changed: 1 addition & 0 deletions
531 KB

src/content/blog/2013/accessing-nested-project-items-using-powershell-in-a-nuget-package/index.md

Lines changed: 1 addition & 2 deletions
412 KB

src/content/blog/2013/codepalousa-2013-review/index.md

Lines changed: 1 addition & 0 deletions
364 KB

src/content/blog/2013/stirtrek-2013-review/index.md

Lines changed: 1 addition & 0 deletions
521 KB

0 commit comments

Comments
 (0)