mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Guard against repo_url
being None in MkDocs 1.4
This commit is contained in:
parent
8b0060cdad
commit
98c32aa24d
@ -7,7 +7,7 @@
|
||||
{% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if "github.com" in config.repo_url %}
|
||||
{% if config.repo_url and "github.com" in config.repo_url %}
|
||||
{% if "github" not in cookies %}
|
||||
{% set _ = cookies.update({ "github": "GitHub" }) %}
|
||||
{% endif %}
|
||||
|
@ -27,7 +27,7 @@
|
||||
{% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if "github.com" in config.repo_url %}
|
||||
{% if config.repo_url and "github.com" in config.repo_url %}
|
||||
{% if "github" not in cookies %}
|
||||
{% set _ = cookies.update({ "github": "GitHub" }) %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user