Adds <MetaTags>
This commit is contained in:
@@ -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>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
14
web/src/pages/ArticlePage/ArticlePage.js
Normal file
14
web/src/pages/ArticlePage/ArticlePage.js
Normal 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
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
import BlogPostCell from 'src/components/BlogPostCell'
|
|
||||||
|
|
||||||
const ArticlePage = ({ id }) => {
|
|
||||||
return <BlogPostCell id={id} />
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ArticlePage
|
|
||||||
@@ -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}
|
||||||
|
|||||||
@@ -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 />
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user