From 06d9ed8c51b1dbf1d79f531f153cdbbbcc1b47a5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Mar 2024 11:24:00 -0300 Subject: external-links: Internet Archive, Wayback Machine --- src/static/icons.svg | 1 + src/strings-default.yaml | 2 ++ src/util/external-links.js | 13 +++++++++++++ 3 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/static/icons.svg b/src/static/icons.svg index 8393ad80..a2836a46 100644 --- a/src/static/icons.svg +++ b/src/static/icons.svg @@ -14,6 +14,7 @@ + diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 44cff01a..2f0098f4 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -536,6 +536,7 @@ misc: secretPage: "Homestuck (secret page)" instagram: "Instagram" + internetArchive: "Internet Archive" itch: "itch.io" kofi: "Ko-fi" mastodon: "Mastodon" @@ -549,6 +550,7 @@ misc: tumblr: "Tumblr" twitch: "Twitch" twitter: "Twitter" + waybackMachine: "Wayback Machine" wikipedia: "Wikipedia" youtube: diff --git a/src/util/external-links.js b/src/util/external-links.js index 9130cacc..d82ba47a 100644 --- a/src/util/external-links.js +++ b/src/util/external-links.js @@ -334,6 +334,13 @@ export const externalLinkSpec = [ icon: 'instagram', }, + // The Wayback Machine is a separate entry. + { + match: {domain: 'archive.org'}, + platform: 'internetArchive', + icon: 'internetArchive', + }, + { match: {domain: '.itch.io'}, @@ -494,6 +501,12 @@ export const externalLinkSpec = [ icon: 'twitter', }, + { + match: {domain: 'web.archive.org'}, + platform: 'waybackMachine', + icon: 'internetArchive', + }, + { match: {domains: ['wikipedia.org', '.wikipedia.org']}, platform: 'wikipedia', -- cgit 1.3.0-6-gf8a5