Skip to content

pypressportal examples of using python script to create og tags #41

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

Open
coding-to-music opened this issue May 18, 2021 · 1 comment
Open
Labels
content documentation Improvements or additions to documentation SEO
Milestone

Comments

@coding-to-music coding-to-music added documentation Improvements or additions to documentation SEO content labels May 18, 2021
@coding-to-music
Copy link
Owner Author

sphinx-doc/sphinxext-opengraph#15
This pull request adds support for og:image:alt (partially solves #10).

This is how the alt tag is generated:

ogp_image_alt is a new option for conf.py. Any string provided with this option will be used as alt text
If no string is provided, opengraph.py will try to automatically use site_name as alt text. If site_name is not available, htp.text will be used instead.
The user also has the option to completely turn off alt text, by setting ogp_image_alt to False.
This pull request also includes an additional test and an update to README.md.

According to opg.me any page that includes an og:image should also inclode an og:image:alt. This would not only increase compliance with opg but might also increase search engine visibility.

@coding-to-music coding-to-music added this to the Milestone 1 milestone May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content documentation Improvements or additions to documentation SEO
Projects
None yet
Development

No branches or pull requests

1 participant