Skip to content

Commit

Permalink
Fix regression with 'None' inserted in html by google analytics script (
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Apr 26, 2021
1 parent 77a6635 commit 6d316bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydata_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def generate_google_analytics_script(id):
"""
soup = bs(script, "html.parser")
return soup
else:
return ""

context["generate_nav_html"] = generate_nav_html
context["generate_toc_html"] = generate_toc_html
Expand Down

0 comments on commit 6d316bb

Please sign in to comment.