fix(v2): allow undefined favicon (#5054)

* fix(v2): allow undefined favicon

* fix snapshots
This commit is contained in:
Sébastien Lorber 2021-06-24 18:50:28 +02:00 committed by GitHub
parent 05c85c7be7
commit 138b4c9975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 41 deletions

View file

@ -99,7 +99,7 @@ export async function generateBlogFeed(
language: feedOptions.language,
link: blogBaseUrl,
description: feedOptions.description || `${siteConfig.title} Blog`,
favicon: normalizeUrl([siteUrl, baseUrl, favicon]),
favicon: favicon ? normalizeUrl([siteUrl, baseUrl, favicon]) : undefined,
copyright: feedOptions.copyright,
});