-
Notifications
You must be signed in to change notification settings - Fork 205
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
Meta tag, Open Graph, and Twitter sharing metadata problems #203
Comments
Looking at the jekyll docs, the first paragraph of a blog post is automatically used as an excerpt even without using the Excerpts for pages can be enabled by setting |
I just started working on this so am assigning to myself. |
Making progress. I have automated page excerpts working in my fork. For some pages an explicit excerpt will be required, not just a 'nice to have'. Two examples: Downloads, where the first paragraph is blank, so the excerpt is an empty string. Blog, where the automatic excerpt includes all of the blog posts, making for a gigantic excerpt. |
- In _config.yml file: - Enable page excerpts - Set excerpt separator - In base layout: - Calculate title, description, URL in one place for meta tags - Always use page values for meta tags when present, fallback to site values - Replace conditional tags with single tag that uses calculated value - Move robots meta tag out from the middle of Open Graph tags - Reduce excessive whitespace from generated newlines - Add explicit excerpts to front matter of pages where automatic excerpt was not suitable / sufficient - Small adjustments to page first paragraphs to generate better description meta tags - Resolves swiftlang#203
- In _config.yml file: - Enable page excerpts - Set excerpt separator - In base layout: - Calculate title, description, URL in one place for meta tags - Always use page values for meta tags when present, fallback to site values - Replace conditional tags with single tag that uses calculated value - Move robots meta tag out from the middle of Open Graph tags - Reduce excessive whitespace from generated newlines - Add explicit excerpts to front matter of pages where automatic excerpt was not suitable / sufficient - Small adjustments to page first paragraphs to generate better description meta tags - Resolves swiftlang#203
As part of looking over whether we should merge #162, I noticed we have some problems with how we are using our meta tags, including Open Graph and Twitter tags.
When people share URLs from Swift.org, they currently use the site description for the Open Graph and Twitter meta tags, meaning the Mentorship page previews using the site title and site description:
There are several things we could do better:
base.html
, only falling back to the site title and description when absolutely nothing else is available.excerpt_separator
. This needs a little investigation.The text was updated successfully, but these errors were encountered: