{# QR Code Module - Self-hosted QR code generator #} {# Shorthand variables for cleaner code #} {% set c = module.content %} {% set s = module.style %} {# Module Variables. For 'current_page' we emit EMPTY content and let the init JS read window.location.href client-side — server-rendering request.full_url makes the whole page ineligible for HubSpot prerender caching (TTFB hit on every page). #} {% set qr_content = c.content_type == 'current_page' ? '' : c.custom_content %} {% set qr_id = "qr-code-" ~ name %} {# Module HTML #}
{{ c.description }}
{% endif %}{{ c.text_label }}: {% if c.content_type != 'current_page' %}{{ qr_content|truncate(50) }}{% endif %}