{# Keep upgrade-insecure-requests for HTTPS/proxied HTTPS only. On local HTTP dev this would force static assets to https://localhost and can break Safari with TLS errors. #} {% if should_upgrade_insecure_requests %} {% endif %} {# Relative to this page, so the assets still resolve behind a proxy that strips a path prefix. #} {% set static_root = '../' * (request.path.count('/') - 1) ~ url_for('static', filename='')[request.script_root|length + 1:] %} {% set mdv = entry_assets('mdv') %} {% for css in mdv.css %} {% endfor %}