Skip to content

Commit

Permalink
Revert "fix(plugin/favicon): move svg icon to end"
Browse files Browse the repository at this point in the history
This reverts commit 9dca4d8.
  • Loading branch information
kwaa committed Jan 27, 2024
1 parent 3fe8d4b commit 8712793
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions plugins/favicon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ export default function (userOptions?: Options) {
for (const page of pages) {
const document = page.document!;

for (const favicon of options.favicons) {
addIcon(document, {
rel: favicon.rel,
sizes: favicon.size.map((s) => `${s}x${s}`).join(" "),
href: site.url(favicon.url),
});
}

if (options.input.endsWith(".svg")) {
addIcon(document, {
rel: "icon",
Expand All @@ -133,6 +125,14 @@ export default function (userOptions?: Options) {
type: "image/svg+xml",
});
}

for (const favicon of options.favicons) {
addIcon(document, {
rel: favicon.rel,
sizes: favicon.size.map((s) => `${s}x${s}`).join(" "),
href: site.url(favicon.url),
});
}
}
});
};
Expand Down

0 comments on commit 8712793

Please sign in to comment.