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

Using page->text() as fallback meta #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AhoyLemon
Copy link

This is something I mentioned in Issue #14, and I ended up adding these changes to my own site. I'm putting it in as a PR just in case you think it would help you as well.

So basically, what this does in a nutshell is add an excerpt of page->text()->excerpt(180) as a fallback between manually enterered meta info and the sitewide meta info.

So, for example, OpenGraph looks like...

  1. OpenGraph Description
  2. Meta Description
  3. Excerpt of Page Text
  4. Sitewide Meta Description
  5. blank/error message

If this is unhelpful or not what you were thinking for this plugin, do please ignore. Just providing what I did in case it helps others.

This is something I mentioned in Issue diesdasdigital#14, and I ended up adding these changes to my own site. I'm putting it in as a PR just in case you think it would help you as well.

So basically, what this does in a nutshell is add an excerpt of page->text() as a fallback between manually enterered meta info and the sitewide meta info.

So, for example, OpenGraph looks like...

1. OpenGraph Description
2. Meta Description
3. Excerpt of Page Text
4. Sitewide Meta Description
5. blank/error message

If this is unhelpful or not what you were thinking for this plugin, do please ignore. Just providing what I did in case it helps others.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant