File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ const config: GatsbyConfig = {
6
6
title : "Browser Actions" ,
7
7
description : "GitHub Actions for Browsers" ,
8
8
siteUrl : "https://browser-actions.github.io" ,
9
+ social : {
10
+ twitter : "ueokande" ,
11
+ } ,
9
12
} ,
10
13
graphqlTypegen : true ,
11
14
plugins : [
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ query Site {
18
18
title
19
19
description
20
20
siteUrl
21
+ social {
22
+ twitter
23
+ }
21
24
}
22
25
}
23
26
cover: file(relativePath: { eq: "cover.png" }) {
@@ -43,6 +46,15 @@ query Site {
43
46
< meta property = "og:image" content = { coverUrl } />
44
47
< meta property = "og:description" content = { metaDescription } />
45
48
< meta property = "og:type" content = "website" />
49
+ { site . siteMetadata ?. social ?. twitter && (
50
+ < meta
51
+ name = "twitter:creator"
52
+ content = { `@${ site . siteMetadata . social . twitter } ` }
53
+ />
54
+ ) }
55
+ < meta name = "twitter:title" content = { title } />
56
+ < meta name = "twitter:description" content = { metaDescription } />
57
+ < meta name = "twitter:image" content = { coverUrl } />
46
58
{ children }
47
59
</ >
48
60
) ;
You can’t perform that action at this time.
0 commit comments