fix(wordpress): favicon

This commit is contained in:
Tony 2025-03-23 18:54:35 +08:00
parent ae2cd7c378
commit fd065934a6
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ const fetchData = async (url: string, rootUrl: string): Promise<object> => {
const $ = load(response);
const title = $('title').first().text();
const image = new URL('wp-content/uploads/site_logo.png', rootUrl).href;
const image = new URL($('link[rel="icon"]').last().attr('href') ?? 'wp-content/uploads/site_logo.png', rootUrl).href;
return {
title,