Adds <MetaTags>

This commit is contained in:
Rob Cameron
2022-02-08 14:53:19 -08:00
parent ab61793bcf
commit eebbfbd103
7 changed files with 31 additions and 13 deletions

View File

@@ -1,11 +1,15 @@
import { Link, routes } from '@redwoodjs/router' import { MetaTags } from '@redwoodjs/web'
const AboutPage = () => { const AboutPage = () => {
return ( return (
<>
<MetaTags title="About" description="About page" />
<p className="font-light"> <p className="font-light">
This site was created to demonstrate my mastery of Redwood: Look on my This site was created to demonstrate my mastery of Redwood: Look on my
works, ye mighty, and despair! works, ye mighty, and despair!
</p> </p>
</>
) )
} }

View File

@@ -0,0 +1,14 @@
import { MetaTags } from '@redwoodjs/web'
import BlogPostCell from 'src/components/BlogPostCell'
const ArticlePage = ({ id }) => {
return (
<>
<MetaTags title="Article" description="Article page" />
<BlogPostCell id={id} />
</>
)
}
export default ArticlePage

View File

@@ -1,7 +0,0 @@
import BlogPostCell from 'src/components/BlogPostCell'
const ArticlePage = ({ id }) => {
return <BlogPostCell id={id} />
}
export default ArticlePage

View File

@@ -1,3 +1,4 @@
import { MetaTags } from '@redwoodjs/web'
import { import {
Form, Form,
TextField, TextField,
@@ -36,6 +37,8 @@ const ContactPage = () => {
return ( return (
<> <>
<MetaTags title="Contact" description="Contact page" />
<Toaster /> <Toaster />
<Form <Form
onSubmit={onSubmit} onSubmit={onSubmit}

View File

@@ -1,8 +1,12 @@
import { MetaTags } from '@redwoodjs/web'
import BlogPostsCell from 'src/components/BlogPostsCell' import BlogPostsCell from 'src/components/BlogPostsCell'
const HomePage = () => { const HomePage = () => {
return ( return (
<>
<MetaTags title="Home" description="Home page" />
<BlogPostsCell /> <BlogPostsCell />
</>
) )
} }