Skip to content

Commit 98023d9

Browse files
feat: add meta description to improve SEO
1 parent 7d5ede4 commit 98023d9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

site/pages/_document.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export default function Document() {
55
return (
66
<Html lang="en">
77
<Head>
8+
<meta
9+
name="description"
10+
content="Slate is a completely customizable framework for building rich text editors. Learn how to build powerful editors with React and TypeScript."
11+
/>
812
<link rel="icon" href="/favicon.ico" />
913
<link rel="stylesheet" href="/index.css" />
1014
<link rel="preconnect" href="https://fonts.googleapis.com" />

site/pages/examples/[example].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export async function getStaticProps({
216216
params: { example: string }
217217
}) {
218218
const EXAMPLE = EXAMPLES.find(e => e[2] === params.example)
219-
const [name, , path] = EXAMPLE!
219+
const [name, , path] = EXAMPLE || [params.example, null, params.example]
220220
return {
221221
props: {
222222
example: params.example,

0 commit comments

Comments
 (0)