-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: update documentation meta tags * feat: update documentation version to v0.11.1 * fix: formatting * feat: add SEO breadcrumb structured data
- Loading branch information
1 parent
258b4af
commit 48c3934
Showing
23 changed files
with
269 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 57 additions & 21 deletions
78
apps/documentation/src/components/breadcrumbs/breadcrumbs.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import MetaTags from './meta-tags' | ||
|
||
export default MetaTags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { ReactNode } from 'react' | ||
import { Head } from 'tuono' | ||
|
||
interface MetaTagsProps { | ||
title: string | ||
description?: string | ||
type?: 'website' | 'article' | 'book' | 'video.movie' | 'music.song' | ||
canonical: string | ||
} | ||
|
||
export default function MetaTags({ | ||
title, | ||
description, | ||
type = 'article', | ||
canonical, | ||
}: MetaTagsProps): ReactNode { | ||
return ( | ||
<Head> | ||
<title>{title}</title> | ||
<link rel="canonical" href={canonical} /> | ||
<meta | ||
name="description" | ||
content={ | ||
description ?? | ||
'The technologies we love seamlessly working together to unleash the highest web performance ever met on React' | ||
} | ||
/> | ||
<meta | ||
name="keywords" | ||
content="ReactJs, Typescript, Rust, JavaScript, Fullstack framework, Web development" | ||
/> | ||
<meta property="og:title" content={title} /> | ||
<meta property="og:type" content={type} /> | ||
<meta property="og:image" content="https://tuono.dev/og-cover.png" /> | ||
<meta property="og:url" content={canonical} /> | ||
<meta property="og:description" content={description} /> | ||
<meta property="og:site_name" content="Tuono" /> | ||
<meta property="og:locale" content="en_US" /> | ||
</Head> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
apps/documentation/src/routes/documentation/contributing.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
apps/documentation/src/routes/documentation/installation.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
apps/documentation/src/routes/documentation/routing/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 11 additions & 9 deletions
20
apps/documentation/src/routes/documentation/routing/intro.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
apps/documentation/src/routes/documentation/tutorial/api-fetching.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
apps/documentation/src/routes/documentation/tutorial/components.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
apps/documentation/src/routes/documentation/tutorial/conclusion.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.