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

Default OGP Setting #2111

Open
ogadra opened this issue Mar 15, 2025 · 1 comment
Open

Default OGP Setting #2111

ogadra opened this issue Mar 15, 2025 · 1 comment

Comments

@ogadra
Copy link

ogadra commented Mar 15, 2025

Related #1932

Is your feature request related to a problem? Please describe.

If #2096 is merged, we will be able to use OGP setting on Slidev pages.

On Social media, slides are often shared, and the first slide is typically used as the OGP image.

Therefore, I would be even happier if an image of ther first slide could be automatically generated and set as the OGP image when building a Slidev project.

Describe the solution you'd like

When the project is built, generate a PNG image of first slide and set it as the OGP image for the page.

Describe alternatives you've considered

I have no idea.

@ogadra
Copy link
Author

ogadra commented Mar 15, 2025

I checked the source code. It looks like we need to implement a way to specify which slide to export via an argument, because currently, all slides are exported instead of just the first one.

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

No branches or pull requests

1 participant