We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afdd262 commit 72a3c56Copy full SHA for 72a3c56
components/ShareButton.tsx
@@ -4,6 +4,7 @@ import styles from './styles/shareButton.module.scss'
4
import { name, siteUrl } from '../config/blog.config.json'
5
6
export default function ShareButton({slug, title}: { slug: string, title: string }) {
7
+ const str: string = 5555;
8
const shareTitle = (title.length > 100) ? title.slice(0, 100) + '...' : title
9
const shareUrl = siteUrl + 'articles/' + slug
10
const twitterUrl = `https://twitter.com/intent/tweet?text=${shareTitle} | ${name}&url=\n${shareUrl}`
0 commit comments