File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ const ShareButtons = ({ post }) => {
62
62
const shareUrl = siteConfig ( 'LINK' ) + router . asPath
63
63
const title = post . title || siteConfig ( 'TITLE' )
64
64
const image = post . pageCover
65
+ const tags = post . tags || [ ]
66
+ const hashTags = tags . map ( tag => `#${ tag } ` ) . join ( ',' )
65
67
const body = post ?. title + ' | ' + title + ' ' + shareUrl + ' ' + post ?. summary
66
68
67
69
const services = siteConfig ( 'POSTS_SHARE_SERVICES' ) . split ( ',' )
@@ -89,6 +91,7 @@ const ShareButtons = ({ post }) => {
89
91
< FacebookShareButton
90
92
key = { singleService }
91
93
url = { shareUrl }
94
+ hashtag = { hashTags }
92
95
className = "mx-1"
93
96
>
94
97
< FacebookIcon size = { 32 } round />
@@ -151,6 +154,7 @@ const ShareButtons = ({ post }) => {
151
154
key = { singleService }
152
155
url = { shareUrl }
153
156
title = { titleWithSiteInfo }
157
+ hashtags = { tags }
154
158
className = "mx-1"
155
159
>
156
160
< TwitterIcon size = { 32 } round />
@@ -235,6 +239,7 @@ const ShareButtons = ({ post }) => {
235
239
key = { singleService }
236
240
url = { shareUrl }
237
241
title = { titleWithSiteInfo }
242
+ tags = { tags }
238
243
className = "mx-1"
239
244
>
240
245
< TumblrIcon size = { 32 } round />
@@ -284,6 +289,7 @@ const ShareButtons = ({ post }) => {
284
289
key = { singleService }
285
290
url = { shareUrl }
286
291
quote = { titleWithSiteInfo }
292
+ hashtag = { hashTags }
287
293
className = "mx-1"
288
294
>
289
295
< WorkplaceIcon size = { 32 } round />
You can’t perform that action at this time.
0 commit comments