mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01: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" }) %}
|
{% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% 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 %}
|
{% if "github" not in cookies %}
|
||||||
{% set _ = cookies.update({ "github": "GitHub" }) %}
|
{% set _ = cookies.update({ "github": "GitHub" }) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
{% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
|
{% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% 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 %}
|
{% if "github" not in cookies %}
|
||||||
{% set _ = cookies.update({ "github": "GitHub" }) %}
|
{% set _ = cookies.update({ "github": "GitHub" }) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user