diff --git a/src/lib/util/LinkResolver.ts b/src/lib/util/LinkResolver.ts index 9d1570e..aa7a40e 100644 --- a/src/lib/util/LinkResolver.ts +++ b/src/lib/util/LinkResolver.ts @@ -16,7 +16,8 @@ const icons: Record = { 'hl.teasanctuary.ru': '/icons/half-life.svg', 'git.teasanctuary.ru': 'devicon-plain:git', localhost: '/icons/tea-sanctuary-white.svg', - email: 'material-symbols:alternate-email' + email: 'material-symbols:alternate-email', + rss: 'material-symbols:rss-feed' }; // Особые случаи, когда одним доменом второго уровня не ограничишься (например, randomtrash.itch.io) @@ -44,6 +45,8 @@ function getIconFromUrl(url: URL): string | undefined { const href = url.href; if (href.startsWith('mailto:')) return 'email'; + if (href.endsWith('/rss.xml')) + return 'rss'; const hostname = url.hostname; const secondLevel = hostname.match(/(([A-Za-z0-9\-])+\.([A-Za-z0-9\-])+)$/)?.at(0) ?? '';