mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed error when no analytics provider was set
This commit is contained in:
parent
ed9347c487
commit
b3c0ecc161
@ -7,4 +7,6 @@
|
|||||||
{% if config.extra.analytics %}
|
{% if config.extra.analytics %}
|
||||||
{% set provider = config.extra.analytics.provider %}
|
{% set provider = config.extra.analytics.provider %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include "partials/integrations/analytics/" ~ provider ~ ".html" %}
|
{% if provider %}
|
||||||
|
{% include "partials/integrations/analytics/" ~ provider ~ ".html" %}
|
||||||
|
{% endif %}
|
||||||
|
@ -30,5 +30,7 @@
|
|||||||
{% set provider = config.extra.analytics.provider %}
|
{% set provider = config.extra.analytics.provider %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Analytics provider -->
|
<!-- Set up analytics provider -->
|
||||||
{% include "partials/integrations/analytics/" ~ provider ~ ".html" %}
|
{% if provider %}
|
||||||
|
{% include "partials/integrations/analytics/" ~ provider ~ ".html" %}
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user