This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change 1
- import Layout from '@/components/common/Layout'
2
- import { Info } from '@/components/molecules/Alert'
3
- import PropTypes from 'prop-types'
4
1
import getPostTypeStaticPaths from '@/api/wordpress/_global/getPostTypeStaticPaths'
5
2
import getPostTypeStaticProps from '@/api/wordpress/_global/getPostTypeStaticProps'
3
+ import Layout from '@/components/common/Layout'
4
+ import { NextSeo } from 'next-seo'
5
+ import PropTypes from 'prop-types'
6
6
7
7
// Define route post type.
8
8
const postType = 'page'
@@ -16,15 +16,22 @@ const postType = 'page'
16
16
*/
17
17
export default function Page ( { post} ) {
18
18
return (
19
- < Layout title = { post ?. title } description = { post ?. excerpt } >
19
+ < Layout >
20
+ < NextSeo
21
+ title = "Query from Yoast SEO"
22
+ description = "Query from Yoast SEO"
23
+ openGraph = { {
24
+ title : 'Query from Yoast SEO' ,
25
+ description : 'Query from Yoast SEO' ,
26
+ images : [
27
+ {
28
+ url : 'Query from Yoast SEO' ,
29
+ alt : 'Query from Yoast SEO'
30
+ }
31
+ ]
32
+ } }
33
+ />
20
34
< div className = "container" >
21
- < Info >
22
- The content below is sourced from the WordPress REST-API.{ ' ' }
23
- < a href = "https://nextjs.org/docs/basic-features/data-fetching#getstaticpaths-static-generation" >
24
- Learn more about SSG.
25
- </ a >
26
- </ Info >
27
-
28
35
< section >
29
36
< article >
30
37
< h1 dangerouslySetInnerHTML = { { __html : post ?. title } } />
You can’t perform that action at this time.
0 commit comments