Skip to content

Support additional image tags #10

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
ItayZiv opened this issue Jul 7, 2020 · 3 comments
Closed

Support additional image tags #10

ItayZiv opened this issue Jul 7, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@ItayZiv
Copy link
Collaborator

ItayZiv commented Jul 7, 2020

Support for og:image:width and og:image:height would be useful for making images a decent size (possibly with a default, especially on the height one), it would also need testing on whether specifying only one scales the image or stretches it out of proportions.
Support for og:image:type and og:image:alt may or may not be useful.

Edit: For config, it may or may not be useful to not have the all as separate options, maybe under a dict of image_options or something else.

@TheTripleV
Copy link
Collaborator

Also, websites support multiple og:image tags but this extension can currently only insert one.

@tcmetzger
Copy link
Contributor

Hey there!
First of all, thanks for creating this very helpful extension! I have been looking for an extension like this and have been using my own custom extension to include OG tags in my docs.

I'd be happy to contribute some small improvements if you're interested. As a first idea, I'd like to propose a quick solution to add a very simple image:alt tag. After all, on opg.me they say: "If the page specifies an og:image it should specify og:image:alt.". I would add an additional option (ogp_image_alt) to provide an alt text - if no alt text is provided, we could automatically use ogp_site_name or htp.text as an alt text.

This would not only increase compliance with opg but might also increase search engine visibility.

@ItayZiv
Copy link
Collaborator Author

ItayZiv commented Feb 13, 2022

Remaining issues superseded by #53

@ItayZiv ItayZiv closed this as completed Feb 13, 2022
@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
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants