55 * See: https://www.gatsbyjs.org/docs/use-static-query/
66 */
77
8- import React from " react"
9- import PropTypes from " prop-types"
10- import { Helmet } from " react-helmet"
11- import { useStaticQuery , graphql } from " gatsby"
8+ import React from ' react' ;
9+ import PropTypes from ' prop-types' ;
10+ import { Helmet } from ' react-helmet' ;
11+ import { useStaticQuery , graphql } from ' gatsby' ;
1212
13- function SEO ( { description, lang, meta, title } ) {
14- const { site } = useStaticQuery (
13+ function SEO ( { description, lang, meta, title} ) {
14+ const { site} = useStaticQuery (
1515 graphql `
1616 query {
1717 site {
@@ -23,66 +23,66 @@ function SEO({ description, lang, meta, title }) {
2323 }
2424 }
2525 `
26- )
26+ ) ;
2727
28- const metaDescription = description || site . siteMetadata . description
28+ const metaDescription = description || site . siteMetadata . description ;
2929
3030 return (
3131 < Helmet
3232 htmlAttributes = { {
33- lang,
33+ lang
3434 } }
3535 title = { title }
3636 titleTemplate = { `%s | ${ site . siteMetadata . title } ` }
3737 meta = { [
3838 {
3939 name : `description` ,
40- content : metaDescription ,
40+ content : metaDescription
4141 } ,
4242 {
4343 property : `og:title` ,
44- content : title ,
44+ content : title
4545 } ,
4646 {
4747 property : `og:description` ,
48- content : metaDescription ,
48+ content : metaDescription
4949 } ,
5050 {
5151 property : `og:type` ,
52- content : `website` ,
52+ content : `website`
5353 } ,
5454 {
5555 name : `twitter:card` ,
56- content : `summary` ,
56+ content : `summary`
5757 } ,
5858 {
5959 name : `twitter:creator` ,
60- content : site . siteMetadata . author ,
60+ content : site . siteMetadata . author
6161 } ,
6262 {
6363 name : `twitter:title` ,
64- content : title ,
64+ content : title
6565 } ,
6666 {
6767 name : `twitter:description` ,
68- content : metaDescription ,
69- } ,
68+ content : metaDescription
69+ }
7070 ] . concat ( meta ) }
7171 />
72- )
72+ ) ;
7373}
7474
7575SEO . defaultProps = {
7676 lang : `en` ,
7777 meta : [ ] ,
78- description : `` ,
79- }
78+ description : ``
79+ } ;
8080
8181SEO . propTypes = {
8282 description : PropTypes . string ,
8383 lang : PropTypes . string ,
8484 meta : PropTypes . arrayOf ( PropTypes . object ) ,
85- title : PropTypes . string . isRequired ,
86- }
85+ title : PropTypes . string . isRequired
86+ } ;
8787
88- export default SEO
88+ export default SEO ;
0 commit comments