Skip to content

Commit 6d2c7eb

Browse files
committed
chore(blog): generate missing cover images and add subtitles
- Add subtitles to 33 posts missing them - Generate cover.png for 33 posts missing covers - Replace 8 cover.jpg files with generated cover.png - Remove redirect_from rule from one post - Fix generate-cover.js to handle Windows line endings
1 parent ebdc3b0 commit 6d2c7eb

75 files changed

Lines changed: 36 additions & 3 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)