mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-01 06:44:16 +02:00
18 lines
719 B
Django/Jinja
18 lines
719 B
Django/Jinja
{# Allow multiple sub_filters #}
|
|
sub_filter_once off;
|
|
sub_filter_types text/html;
|
|
|
|
{% if matomo_tracking_enabled | bool %}
|
|
{# Include Global Matomo Tracking #}
|
|
{% include 'roles/nginx-modifier-matomo/templates/matomo-tracking.conf.j2' %}
|
|
{% endif %}
|
|
|
|
{% if css_enabled | bool or matomo_tracking_enabled | bool %}
|
|
sub_filter '</head>' '{% if matomo_tracking_enabled | bool %}{% include 'roles/nginx-modifier-matomo/templates/script.j2' %}{% endif %}{% if css_enabled | bool %}{% include 'roles/nginx-modifier-css/templates/link.j2' %}{% endif %}</head>';
|
|
{% endif %}
|
|
|
|
{% if css_enabled | bool %}
|
|
{# Include Global CSS Location #}
|
|
{% include 'roles/nginx-modifier-css/templates/location.conf.j2' %}
|
|
{% endif %}
|