From 268da78f3a868e271c761ecb69d26fa988cbd705 Mon Sep 17 00:00:00 2001 From: Avris Date: Sun, 5 Sep 2021 17:59:10 +0200 Subject: [PATCH] [profile] add more links providers --- plugins/link.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/plugins/link.js b/plugins/link.js index 91fe5c7b..be86d8be 100644 --- a/plugins/link.js +++ b/plugins/link.js @@ -46,10 +46,31 @@ const LINK_PROVIDERS = { homepage: 'https://cake.avris.it', name: 'Attraction Layer Cake', }, + spectrum: { + regex: '^https://spectrum.avris.it/([A-Za-z0-9]{4})$', + icon: 'https://spectrum.avris.it/favicon.png', + }, orcid: { regex: '^https?://(?:www.)?orcid.org/([^/]+)', icon: 'https://orcid.org/assets/icons/favicon.ico', }, + kofi: { + regex: '^https?://(?:www.)?ko-fi.com/([^/]+)', + icon: 'https://ko-fi.com/favicon.png', + }, + linktree: { + regex: '^https?://(?:www.)?linktr.ee/([^/]+)', + icon: 'https://linktr.ee/static/favicon.ico', + }, + blogger: { + regex: '^https?://([^/]+).(?:blogger|blogspot).com', + icon: 'https://www.blogger.com/about/favicon/favicon.ico', + }, + twitch: { + regex: '^https?://(?:www.)?twitch.tv/([^/]+)', + icon: 'twitch', + iconSet: 'b', + }, }; export default {