0f4333a5a3
Converted Blog example over to TypeScript to match the Contribution guidelines. I also simplified the example by removing `_document.js` and prettier from `package.json`. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm lint` - [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
27 lines
616 B
TypeScript
27 lines
616 B
TypeScript
import 'nextra-theme-blog/style.css'
|
|
import type { AppProps } from 'next/app'
|
|
import Head from 'next/head'
|
|
import '../styles/main.css'
|
|
|
|
export default function App({ Component, pageProps }: AppProps) {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<link
|
|
rel="alternate"
|
|
type="application/rss+xml"
|
|
title="RSS"
|
|
href="/feed.xml"
|
|
/>
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/Inter-roman.latin.var.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossOrigin="anonymous"
|
|
/>
|
|
</Head>
|
|
<Component {...pageProps} />
|
|
</>
|
|
)
|
|
}
|