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

More fallbacks for Open Graph and Twitter images #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MaluNoPeleke
Copy link

I have added more fallback options for the current page images for Open Graph and Twitter as requested at #24

I have added more fallback options for the current page images for Open Graph and Twitter.
@mountbatt
Copy link

mountbatt commented Nov 17, 2022

I added ->first() to $page->cover()->first()->toFile() to select the first image if "cover" has mulitple images. Works also if there is only "one" image.

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.

2 participants