Merge pull request #9 from cloudflare/fix-document-head

apply a single DocumentHead to the root layout component
pull/14/head
Sven Sauleau 2023-01-04 16:43:05 +00:00 zatwierdzone przez GitHub
commit e9b7881f23
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 11 dodań i 34 usunięć

Wyświetl plik

@ -1,5 +1,4 @@
import { component$ } from '@builder.io/qwik'
import { DocumentHead } from '@builder.io/qwik-city'
import Explore from './Explore'
export { statusesLoader } from './Explore'
@ -7,13 +6,3 @@ export { statusesLoader } from './Explore'
export default component$(() => {
return <Explore />
})
export const head: DocumentHead = {
title: 'Wildebeest (Mastodon on Cloudflare)',
meta: [
{
name: 'description',
content: 'A frontend for a mastodon server deployed on Cloudflare.',
},
],
}

Wyświetl plik

@ -1,5 +1,4 @@
import { component$ } from '@builder.io/qwik'
import { DocumentHead } from '@builder.io/qwik-city'
import { MastodonLogo } from '~/components/MastodonLogo'
import { useDomain } from '~/utils/useDomain'
@ -46,13 +45,3 @@ export default component$(() => {
</div>
)
})
export const head: DocumentHead = {
title: 'Wildebeest (Mastodon on Cloudflare)',
meta: [
{
name: 'description',
content: 'A frontend for a mastodon server deployed on Cloudflare.',
},
],
}

Wyświetl plik

@ -1,5 +1,5 @@
import { component$, useStylesScoped$, Slot } from '@builder.io/qwik'
import { useLocation } from '@builder.io/qwik-city'
import { DocumentHead, useLocation } from '@builder.io/qwik-city'
import styles from './layout.scss?inline'
import { LeftColumn } from './LeftColumn/LeftColumn'
import { RightColumn } from './RightColumn/RightColumn'
@ -41,3 +41,13 @@ export default component$(() => {
</main>
)
})
export const head: DocumentHead = {
title: 'Wildebeest (Mastodon on Cloudflare)',
meta: [
{
name: 'description',
content: 'A frontend for a mastodon server deployed on Cloudflare.',
},
],
}

Wyświetl plik

@ -1,5 +1,4 @@
import { $, component$, useStore, useClientEffect$, useSignal } from '@builder.io/qwik'
import { DocumentHead } from '@builder.io/qwik-city'
import { MastodonLogo } from '~/components/MastodonLogo'
import { useDomain } from '~/utils/useDomain'
import Step1 from './step-1'
@ -64,13 +63,3 @@ export default component$(() => {
</div>
)
})
export const head: DocumentHead = {
title: 'Wildebeest (Mastodon on Cloudflare)',
meta: [
{
name: 'description',
content: 'A frontend for a mastodon server deployed on Cloudflare.',
},
],
}