moved opensearch to layout

pull/9780/head
fabian9799 3 years ago
parent aa426f69c8
commit 28e8e8e4cf
No known key found for this signature in database

@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en" class="theme-default typo-default">
<head>
<meta charset="utf-8" />
@ -11,13 +11,6 @@
<meta name="twitter:site" content="@sveltejs" />
<meta name="twitter:creator" content="@sveltejs" />
<link
rel="search"
type="application/opensearchdescription+xml"
href="/opensearch.xml"
title="Svelte"
/>
<!-- add inline style and blocking script to prevent content flash/jump -->
<style>
.ts-version {

@ -5,6 +5,7 @@
import { Nav, Separator } from '@sveltejs/site-kit/nav';
import { Search, SearchBox } from '@sveltejs/site-kit/search';
import '@sveltejs/site-kit/styles/index.css';
import opensearch from '../opensearch.xml?url';
export let data;
@ -29,6 +30,13 @@
<meta name="twitter:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
<meta name="og:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
{/if}
<link
rel="search"
type="application/opensearchdescription+xml"
href={opensearch}
title="Svelte"
/>
</svelte:head>
<div style:display={$page.url.pathname !== '/docs' ? 'contents' : 'none'}>

Loading…
Cancel
Save