diff --git a/package.json b/package.json index b167774c2..1f63eb121 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,5 @@ "lint-staged": { "*.{js,ts,jsx,tsx,css}": "yarn prettier", "src/**/*.md": "yarn fix-headings" - }, - "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" + } } diff --git a/src/utils/rss.js b/src/utils/rss.js index 59f1880db..c6fb82410 100644 --- a/src/utils/rss.js +++ b/src/utils/rss.js @@ -56,7 +56,7 @@ exports.generateRssFeed = function () { `${id}: Blog posts must include an author in the metadata, for RSS feeds` ); } - if (data.date == null || String(data.date).trim() === '') { + if (data.date == null || data.date.trim() === '') { throw new Error( `${id}: Blog posts must include a date in the metadata, for RSS feeds` );