Fixed error when no analytics provider was set

This commit is contained in:
squidfunk 2021-06-06 17:36:50 +02:00
parent ed9347c487
commit b3c0ecc161
2 changed files with 7 additions and 3 deletions

View File

@ -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 %}

View File

@ -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 %}