Fix twitter share URL issue

pull/1331/head
Kamran Ahmed 5 years ago
parent 9e23439f0c
commit b46b425b41
  1. 2
      components/share-page/index.js
  2. 2
      package.json

@ -13,7 +13,7 @@ const SharePage = ({
<ShareIconsList className="d-sm-none d-md-none d-lg-flex d-xl-flex"> <ShareIconsList className="d-sm-none d-md-none d-lg-flex d-xl-flex">
<ShareIcon <ShareIcon
href={ getTwitterShareUrl({ href={ getTwitterShareUrl({
text: `${title}${twitterUsername ? `by @${twitterUsername}` : ''}`, text: `${title} ${twitterUsername ? `by @${twitterUsername}` : ''}`,
url: url url: url
})} })}
target="_blank" target="_blank"

@ -5,7 +5,7 @@
"license": "BSD-4-Clause", "license": "BSD-4-Clause",
"scripts": { "scripts": {
"dev": "next", "dev": "next",
"html": "next build && next export && echo 'roadmap.sh' > out/CNAME && '' > out/.nojekyll", "html": "next build && next export && echo 'roadmap.sh' > out/CNAME && echo '' > out/.nojekyll",
"serve:out": "serve out", "serve:out": "serve out",
"sitemap": "node scripts/sitemap.js", "sitemap": "node scripts/sitemap.js",
"deploy": "NODE_DEBUG=gh-pages gh-pages -d out", "deploy": "NODE_DEBUG=gh-pages gh-pages -d out",

Loading…
Cancel
Save