{%- assign sectionNames = page.url | split: "/" -%} {%- assign sectionName = sectionNames[1] | capitalize -%} {%- assign currentSlug = sectionNames | last -%} {%- assign currentIntegration = site.data.catalog.destinations.items | where: "slug", currentSlug | first -%} {%- assign description = "The technical documentation for Segment." -%} {%- assign priority = 2 -%} {%- assign basehref = "/docs" -%} {%- if page.path contains "index.md" -%} {%- capture basehref -%}{{basehref}}{{ page.url }}{%- endcapture -%} {%- else -%} {%- assign crumbs = page.url | split: '/' -%} {%- assign stoppingpoint = crumbs | size | minus: 1 -%} {%- for crumb in crumbs limit:stoppingpoint -%} {%- capture basehref -%}{{basehref}}{{ crumb }}/{%- endcapture -%} {%- endfor -%} {%- endif -%} {%- if page.integration_type == "destination" -%} {%- assign description = currentIntegration.description -%} {%- assign priority = 4 -%} {%- elsif page.integration_type == "source" -%} {%- assign description = currentIntegration.description -%} {%- assign priority = 4 -%} {%- endif -%} {{page.title}} | Segment Documentation {%- if page.hidden -%} {%- else -%} {%- endif -%} {%- if jekyll.environment == "production" -%} {%- assign hostname = "https://segment.com" -%} {%- elsif jekyll.environment == "staging" -%} {%- assign hostname = "https://segment.build" -%} {%- else -%} {%- assign hostname = "" -%} {%- endif -%} {{ content }} {%- include icons/symbols/arrow-up.svg -%} {% unless page.hide-feedback %} {% include_cached components/feedback-templates.html %} {% endunless %} {%- comment -%} A.JS Production: https://app.segment.com/segment_prod/sources/segment_docs_v2_prod Everything else: https://app.segment.com/segment-engineering/sources/segment_docs {%- endcomment -%} {%- if site.env.CONTEXT == "production" -%} {%- assign write_key = "QAKKJEtNsXpsNfCCBeWCLNxkaaLO7pgp" -%} {%- else -%} {%- assign write_key = "f5c1iWVVwikUDoh5NuVq0G52EPFrMmrX" -%} {%- endif -%} {%- comment -%} JS for site {%- endcomment -%} {%- comment -%} Google Search Results Metadata {%- endcomment -%} {%- comment -%} Consent Manager {%- endcomment -%} {%- if site.env.ENVIRONMENT == "development-internal" -%} {%- endif -%}