{%- set blog_excludes = (content.absolute_url is string_containing 'blog.hubspot.com/news-trends') or (content.absolute_url is string_containing 'hubspot.com/careers-blog') or (content.absolute_url is string_containing 'hubspot.com/timeline') or (content.head_html is string_containing "-- exclude_blog --") or (content.absolute_url == 'https://blog.hubspot.com') or (content.absolute_url == 'https://blog.hubspot.es') or (content.absolute_url == 'https://blog.hubspot.fr') or or (content.absolute_url == 'https://blog.hubspot.de’) or (content.template_path_for_render is string_containing "_Web Team Assets/Blog/templates/") -%}
{% if content.slug is equalto 'artificial-intelligence' %}
{% set cta_overrides = true %}
{% endif %}
{# variable for GA4 QA #}
{% set isGaQa = request.query_dict.gaQA %}
{%- set gdpr_test = (content.head_html is string_containing '-- gdpr-gtm-test --') -%}
{# BLOG #}
{% if request.debug %}
{{ widget_data.update({
'is_blog':
((content.absolute_url is string_containing "br.hubspot.com/blog") or
(content.absolute_url is string_containing ".com/blog/") or
(content.absolute_url is string_containing "blog.") or
(content.absolute_url is string_containing "hsb1.") or
(content.absolute_url is string_containing "hubspot.com/company-news") or
(content.absolute_url is string_containing "hsb1.hubspot.com/careers-blog") or
(content.absolute_url is string_containing "blog/bid/") or
(content.absolute_url is string_containing "blog/tabid/")
or legacy_blog) or
(content.slug == '/pillar-admin') or
(content.template_path_for_render is string_containing "_Web Team Assets/Blog/templates/") or
(content.absolute_url is string_containing "/author")
}) }}
{% else %}
{# OLD VERSION - FOR BACKUP #}
{{ widget_data.update({
'is_blog':
((content.absolute_url is string_containing "br.hubspot.com/blog") or
(content.absolute_url is string_containing ".com/blog/") or
((content.absolute_url is string_containing "blog.") and
!(content.absolute_url is string_containing "blog.hubspot.com/service") and
!(content.absolute_url is string_containing "blog.hubspot.com/marketing") and
!(content.absolute_url is string_containing "blog.hubspot.com/sales") and
!(content.absolute_url is string_containing "blog.hubspot.com/website") and
!(content.absolute_url is string_containing "blog.hubspot.com/customers") and
!(content.absolute_url is string_containing "blog.hubspot.com/agency")) or
(content.absolute_url is string_containing "hsb1.") or
(content.absolute_url is string_containing "hubspot.com/company-news") or
(content.absolute_url is string_containing "hsb1.hubspot.com/careers-blog") or
(content.absolute_url is string_containing "blog/bid/") or
(content.absolute_url is string_containing "blog/tabid/") or
legacy_blog) or
(content.slug == '/pillar-admin') or
((content.absolute_url is string_containing "http://53-staging.sites.hubspot.com/") and
(content.template_path_for_render is string_containing "_Web Team Assets/Blog/templates/")) or
(content.absolute_url is string_containing "/author")
}) }}
{% endif %}
{# Set "ss_approved / ssv2" states true by default #}
{{ widget_data.update({
'ss_approved': true,
'is_legacy': false,
'webpack_migrated': is_webpack_migrated,
'ssv2': true,
'global_versions': build_versions
}) }}
{{ require_js(get_asset_url('/_Web Team Assets/Component Modules/assets/icons.js')) }}
{% unless is_webpack_migrated %}
{% if is_legacy_page %}
{% unless is_blog %}
{% endunless %}
{{ widget_data.update({
'ss_approved': false,
'ssv2': false,
'is_legacy': true
}) }}
{% elif widget_data.is_blog %}
{# styles for blog homepage / listing page / post page / pillar page / topic page / author page #}
{% unless blog_excludes %}
{% endunless %}
{% elif !exclude_globals %}
{# MOST UP TO DATE LIVE STYLES #}
{% set timestamp = unixtimestamp(now) %}
{% endif %}
{% endunless %}
{% if absolute_url is string_containing "/customers/" %}
{# prev: 4128 #}
{% endif %}
{# LANGUAGE VARIABLE CONSTRUCTOR #}
{% global_module "global_language_variable_constructor", no_wrapper=True, export_to_template_context=False %}
{% unless wt_assets_domain is defined %}
{%- set wt_assets_domain = request.domain is string_containing "wthubspot." ? request.domain : "www.hubspot.com" -%}
{% endunless %}
{# PERSONALIZATION API - PLEASE REACH OUT TO #web-personalization FOR ANY CHANGE(S) #}
{% if is_english and (content.template_path_for_render is string_containing "_Web Team Assets/Blog/templates/") %} {# ONLY FOR EN BLOGS #}
{% endif %}
{#### WT-ASSETS + SG REMOVAL TEST VARIABLE - DO NOT REMOVE
{% set WT_ASSETS_REMOVAL = request.query_dict.removeWtAssets %}#}
{% set hreflangLang = 'en' %}
{% if is_english %}
{% set hreflangLang = 'en' %}
{% elif is_spanish %}
{% set hreflangLang = 'es' %}
{% elif is_french %}
{% set hreflangLang = 'fr' %}
{% elif is_german %}
{% set hreflangLang = 'de' %}
{% elif is_japanese %}
{% set hreflangLang = 'jp' %}
{% elif is_portuguese %}
{% set hreflangLang = 'pt' %}
{% endif %}
{% import "/_Web Team Assets/globals/openGraphSocialSharing.html" as openGraph %}
{% import "/Custom/page/Web_Team/hreflang-logic.html" as hreflangMacro %}
{{ openGraph.addOpenGraphTags() }}
{{ hreflangMacro.findRelatedPages(request.full_url) }}
{{ hreflangMacro.renderHreflang(widget_data.associated_pages) }}
{# Component Library Custom Property Definitions #}
{% include "/_Web Team Assets/Website/views/_layouts/includes/_theme.html" %}
{% if blog %}
{% include "/_Web Team Assets/Website/views/_layouts/includes/_labs-loader.html" %}
{% endif %}