1
- import config from '@/functions/config'
2
1
import Head from 'next/head'
3
- import PropTypes from 'prop-types'
4
2
5
- export default function Meta ( props ) {
3
+ export default function Meta ( ) {
6
4
return (
7
5
< Head >
8
- < title >
9
- { props . title } - { props . description }
10
- </ title >
11
6
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" />
12
7
< meta httpEquiv = "x-ua-compatible" content = "ie=edge" />
13
- < meta name = "description" content = { props . description } />
14
8
< meta name = "msapplication-TileColor" content = "#fffff" />
15
9
< meta name = "msapplication-config" content = "/favicon/browserconfig.xml" />
16
10
< meta name = "theme-color" content = "#fff" />
@@ -33,34 +27,6 @@ export default function Meta(props) {
33
27
/>
34
28
< link rel = "manifest" href = "/favicon/site.webmanifest" />
35
29
< link rel = "shortcut icon" href = "/favicon/favicon.ico" />
36
- < meta name = "twitter:card" content = "summary" />
37
- < meta name = "twitter:url" content = { config . siteUrl } />
38
- < meta name = "twitter:title" content = { props . title } />
39
- < meta name = "twitter:description" content = { props . description } />
40
- < meta
41
- name = "twitter:image"
42
- content = { `${ config . siteUrl } /favicon/android-icon-192x192.png` }
43
- />
44
- < meta name = "twitter:creator" content = { config . author } />
45
- < meta property = "og:type" content = "website" />
46
- < meta property = "og:title" content = { props . title } />
47
- < meta property = "og:description" content = { props . description } />
48
- < meta property = "og:site_name" content = { props . title } />
49
- < meta property = "og:url" content = { config . siteUrl } />
50
- < meta
51
- property = "og:image"
52
- content = { `${ config . siteUrl } /favicon/apple-icon.png` }
53
- />
54
30
</ Head >
55
31
)
56
32
}
57
-
58
- Meta . defaultProps = {
59
- title : config . siteName ,
60
- description : config . siteDescription
61
- }
62
-
63
- Meta . propTypes = {
64
- title : PropTypes . string ,
65
- description : PropTypes . string
66
- }
0 commit comments