From 7cbe8e1d00a95b0b72b9f7f8879f8d02ee6b1af8 Mon Sep 17 00:00:00 2001 From: castdrian <adrifcastr@gmail.com> Date: Fri, 30 Jun 2023 21:42:54 +0200 Subject: [PATCH] add google sitelinks --- index.html | 17 +++++++++++++++++ public/opensearch.xml | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 515f227a..2587227e 100644 --- a/index.html +++ b/index.html @@ -36,6 +36,23 @@ <!-- OpenSearch --> <link rel="search" type="application/opensearchdescription+xml" title="movie-web" href="/opensearch.xml"> + + <!-- Google Sitelinks --> + <script type="application/ld+json"> + { + "@context": "https://schema.org", + "@type": "WebSite", + "url": "https://movie-web.app/", + "potentialAction": { + "@type": "SearchAction", + "target": { + "@type": "EntryPoint", + "urlTemplate": "https://movie-web.app/browse/{search_term_string}" + }, + "query-input": "required name=search_term_string" + } + } + </script> </head> <body> <noscript>You need to enable JavaScript to run this app.</noscript> diff --git a/public/opensearch.xml b/public/opensearch.xml index 30d3e0ec..9ecd3643 100644 --- a/public/opensearch.xml +++ b/public/opensearch.xml @@ -4,6 +4,5 @@ <InputEncoding>UTF-8</InputEncoding> <!-- <Url type="text/html" template="https://movie-web.app/browse/{searchTerms}" /> --> <Url type="text/html" template="https://dev.movie-web.app/browse/{searchTerms}" /> - <!-- <Url type="text/html" template="http://localhost:5173/#/browse/{searchTerms}" /> --> <Url type="application/opensearchdescription+xml" rel="self" template="https://movie-web.app/opensearch.xml" /> </OpenSearchDescription>