-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
docs: Add a social media share icon #2154
Conversation
Theme name validation passed. |
source/index.md
Outdated
@@ -2,6 +2,7 @@ | |||
layout: index | |||
description: Hexo is a fast, simple & powerful blog framework powered by Node.js. | |||
subtitle: A fast, simple & powerful blog framework | |||
og_image: /themes/screenshots/landscape.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to set the official logo as the og:image
for all pages. There's no need to change it page by page. So, we no need to specify og_image
in each posts or pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with 8956360
themes/navy/layout/partial/head.njk
Outdated
@@ -39,6 +39,8 @@ | |||
<!-- Open Graph --> | |||
{{ open_graph({ | |||
fb_admins: config.fb_admins, | |||
image: url_for(page.og_image or 'icon/og-image-wide.png'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, no need or
here. We just add image: url_for('icon/og-image-wide.png')
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with 8956360
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you :)
Hi all,
Thank you for reviewing the Japanese translation.
I tried to post about its publication on social media, but:
X:
Facebook:
NOTE: In the preview, no image is displayed, but upon actual sharing, the Netlify logo image at the bottom of the page appears, which may not be suitable
Since the image was not displayed, the post ended up looking very plain 😅
Therefore, I propose setting a specific page on the Hexo Official Website as the Open Graph Image and Twitter Summary Card image.
After implementing this pull request, posts on social media will display as follows:
NOTE: These images were generated with OGP Image Simulator and may be slightly different from the actual image.
X:
Facebook:
Previously, only the index page displayed the thumbnail of the
landscape
themeAlthough that behavior was unintentional, to prevent it from being replaced by this pull request, we should explicitly designate the landscape image on the index page as the image for social media.
Thank you for your attention.
Check List
Please read and check followings before submitting a PR.
en
Englishru
Russianzh-cn
simplified Chinesezh-tw
traditional Chineseja
Japanese