mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01: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 %}
|
||||
{% set provider = config.extra.analytics.provider %}
|
||||
{% 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 %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Analytics provider -->
|
||||
{% include "partials/integrations/analytics/" ~ provider ~ ".html" %}
|
||||
<!-- Set up analytics provider -->
|
||||
{% if provider %}
|
||||
{% include "partials/integrations/analytics/" ~ provider ~ ".html" %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user