We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a3c56 commit 9094a16Copy full SHA for 9094a16
components/ShareButton.tsx
@@ -4,7 +4,6 @@ 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