Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Social Share Preview #975

Merged
merged 2 commits into from
Jun 4, 2024
Merged

[Fix] Social Share Preview #975

merged 2 commits into from
Jun 4, 2024

Conversation

jasongao97
Copy link
Contributor

Addressed the suggestions from issue #938.

Thank you, @fturmel!

  • Updated the preview image to use an absolute path.
  • Changed meta tags from property to name according to Twitter's documentation.
  • Optimized the preview image size to 1200x630 as Open Graph & Twitter recommended.

Copy link

netlify bot commented May 29, 2024

Deploy Preview for nature-of-code-pdf ready!

Name Link
🔨 Latest commit 8bec0f7
🔍 Latest deploy log https://app.netlify.com/sites/nature-of-code-pdf/deploys/665e65db9eda81000844b96c
😎 Deploy Preview https://deploy-preview-975--nature-of-code-pdf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 29, 2024

Deploy Preview for nature-of-code-2nd-edition ready!

Name Link
🔨 Latest commit 8bec0f7
🔍 Latest deploy log https://app.netlify.com/sites/nature-of-code-2nd-edition/deploys/665e65db2155fc000875dfe8
😎 Deploy Preview https://deploy-preview-975--nature-of-code-2nd-edition.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

<meta property="twitter:description" content={metaDescription} />
<meta property="twitter:image" content={previewImageSrc} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:url" content={siteUrl} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

twitter:url is not a documented tag, it should be safe to remove it

@shiffman
Copy link
Member

shiffman commented Jun 4, 2024

I removed the twitter:url property as suggested by @fturmel

@shiffman
Copy link
Member

shiffman commented Jun 4, 2024

Merging!

@shiffman shiffman merged commit 9acfd37 into main Jun 4, 2024
9 checks passed
@jasongao97 jasongao97 deleted the fix/social-preview branch July 12, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants