diff --git a/sphinx_rtd_theme/breadcrumbs.html b/sphinx_rtd_theme/breadcrumbs.html index 321f5450..c97b09ff 100644 --- a/sphinx_rtd_theme/breadcrumbs.html +++ b/sphinx_rtd_theme/breadcrumbs.html @@ -6,11 +6,17 @@ {% set suffix = source_suffix %} {% endif %} -{% if meta is defined and 'github_url' in meta %} +{% if meta is defined and meta is not none %} +{% set check_meta = True %} +{% else %} +{% set check_meta = False %} +{% endif %} + +{% if check_meta and 'github_url' in meta %} {% set display_github = True %} {% endif %} -{% if meta is defined and 'bitbucket_url' in meta %} +{% if check_meta and 'bitbucket_url' in meta %} {% set display_bitbucket = True %} {% endif %} @@ -24,14 +30,14 @@