Skip to content

Use different image than the first one for subset of files #45

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

Closed
NicolasGensollen opened this issue Sep 7, 2021 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@NicolasGensollen
Copy link

Hi there,

First of all, thanks for this great and useful tool! 👍
I was wondering if there is currently a way to NOT use the first image (even if there is one available) for a subset of files.

My use case is that my index page has a carousel of example images, such that the very first image gets picked but I would rather use the project logo instead for this page (which is set through ogp_image).

The config looks like this for now:

ogp_image = "https://.../logo.png"  # The logo image I want to use in some files although they have a first image availbale
ogp_use_first_image = True

If there is no way to do that now, would it be of interest as a new feature?

Hope this makes sense!

Nicolas

@Daltz333
Copy link
Collaborator

Daltz333 commented Sep 7, 2021

See #11. A refactor to make this possible is in-progress.

@Daltz333 Daltz333 added the duplicate This issue or pull request already exists label Sep 7, 2021
@Daltz333 Daltz333 closed this as completed Sep 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants