Skip to content

Commit

Permalink
Avoid printing og:description if empty (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Guidotti authored May 26, 2021
1 parent b37e7d0 commit 16a291d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinxext/opengraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def get_tags(
tags += make_tag("og:site_name", site_name)

# description tag
tags += make_tag("og:description", description)
if description:
tags += make_tag("og:description", description)

# image tag
# Get basic values from config
Expand Down

0 comments on commit 16a291d

Please sign in to comment.