Skip to content

Commit

Permalink
Fixed error when no analytics provider was set
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jun 6, 2021
1 parent ed9347c commit b3c0ecc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion material/partials/integrations/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
6 changes: 4 additions & 2 deletions src/partials/integrations/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit b3c0ecc

Please sign in to comment.