// Optional: Pre-filled text for Twitter and Bluesky const shareText = "Check out this great resource on newspaper design and journalism!"; const encodedText = encodeURIComponent(shareText);
// FACEBOOK: Opens the Facebook Sharer with the URL pre-populated. document.querySelector('.substack-fb').href = `https://www.facebook.com/sharer/sharer.php?u=${encodedShareUrl}`;
// TWITTER (X): Opens the Tweet composer with text and URL pre-populated. document.querySelector('.substack-twitter').href = `https://twitter.com/intent/tweet?url=${encodedShareUrl}&text=${encodedText}`;
// LINKEDIN: Opens the LinkedIn share dialog with the URL pre-populated. document.querySelector('.substack-linkedin').href = `https://www.linkedin.com/shareArticle?mini=true&url=${encodedShareUrl}&title=${encodedText}`;
// INSTAGRAM: (Kept commented out as there is no web "Create Post" link). // document.querySelector('.substack-instagram').href = `https://www.instagram.com/tksajeev/`;
// WHATSAPP: Kept as the "Click to Chat" link, which is the intended use for a phone number link. document.querySelector('.substack-whatsapp').href = `https://wa.me/8281300023`;
// BLUESKY: Opens the Compose post dialog with text and URL pre-populated. document.querySelector('.substack-bluesky').href = `https://bsky.app/intent/compose?text=${encodedText}%20${encodedShareUrl}`;
// SUBSTACK: Kept as the profile link, as there is no external URL to jump directly to the "Create Post" dashboard. document.querySelector('.substack-substack').href = `https://substack.com/@newspaperdesign?r=1pcp1p&utm_medium=ios`; document.querySelectorAll('.substack-social-button').forEach(button => { button.setAttribute('target', '_blank'); button.setAttribute('rel', 'noopener noreferrer'); });
Photography Staff of Associated Press
For a collection of photographs from multiple U.S. cities that cohesively captures the country’s response to the death of George Floyd.
// Optional: Pre-filled text for Twitter and Bluesky const shareText = "Check out this great resource on newspaper design and journalism!"; const encodedText = encodeURIComponent(shareText);
// FACEBOOK: Opens the Facebook Sharer with the URL pre-populated. document.querySelector('.substack-fb').href = `https://www.facebook.com/sharer/sharer.php?u=${encodedShareUrl}`;
// TWITTER (X): Opens the Tweet composer with text and URL pre-populated. document.querySelector('.substack-twitter').href = `https://twitter.com/intent/tweet?url=${encodedShareUrl}&text=${encodedText}`;
// LINKEDIN: Opens the LinkedIn share dialog with the URL pre-populated. document.querySelector('.substack-linkedin').href = `https://www.linkedin.com/shareArticle?mini=true&url=${encodedShareUrl}&title=${encodedText}`;
// INSTAGRAM: (Kept commented out as there is no web "Create Post" link). // document.querySelector('.substack-instagram').href = `https://www.instagram.com/tksajeev/`;
// WHATSAPP: Kept as the "Click to Chat" link, which is the intended use for a phone number link. document.querySelector('.substack-whatsapp').href = `https://wa.me/8281300023`;
// BLUESKY: Opens the Compose post dialog with text and URL pre-populated. document.querySelector('.substack-bluesky').href = `https://bsky.app/intent/compose?text=${encodedText}%20${encodedShareUrl}`;
// SUBSTACK: Kept as the profile link, as there is no external URL to jump directly to the "Create Post" dashboard. document.querySelector('.substack-substack').href = `https://substack.com/@newspaperdesign?r=1pcp1p&utm_medium=ios`; document.querySelectorAll('.substack-social-button').forEach(button => { button.setAttribute('target', '_blank'); button.setAttribute('rel', 'noopener noreferrer'); });