From ff48f08241d4d8bfa4e47cdeb38837b60542d156 Mon Sep 17 00:00:00 2001 From: Emma Date: Wed, 12 Jan 2022 11:37:45 -0500 Subject: [PATCH] Add OpenSearch for searching mods in browser bar (#337) For more about what OpenSearch is, see [here](https://developer.mozilla.org/en-US/docs/Web/OpenSearch). --- nuxt.config.js | 6 ++++++ static/opensearch.xml | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 static/opensearch.xml diff --git a/nuxt.config.js b/nuxt.config.js index 2e193ac19..c61ad9aae 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -115,6 +115,12 @@ export default { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap', }, + { + rel: 'search', + type: 'application/opensearchdescription+xml', + href: '/opensearch.xml', + title: 'Modrinth mods', + }, ], script: [], }, diff --git a/static/opensearch.xml b/static/opensearch.xml new file mode 100644 index 000000000..ef32b60f7 --- /dev/null +++ b/static/opensearch.xml @@ -0,0 +1,11 @@ + + + Modrinth mods + Search for mods on Modrinth, the open source modding platform. + UTF-8 + https://modrinth.com/favicon.ico + + Guavy LLC + Guavy LLC + https://modrinth.com/mods +