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.
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 textsite_name
as alt text. If site_name is not available,htp.text
will be used instead.ogp_image_alt
toFalse
.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.