{{/* Root template for all pages */}} {{ $hasBottomNav := eq .Section "docs" }} {{ $displayBanner := site.Params.display_banner }} {{/* Make sure the page is always visible if JS is disabled */}} {{/* Ensure smooth page loading */}} {{ partial "meta.html" . }} {{ block "title" . }} {{ site.Title }} | {{ site.Params.description }} {{ end }} {{ partial "css.html" . }} {{/* JS that needs to load at the start */}} {{ partial "javascript/head.html" . }}
{{ if $displayBanner }} {{ partial "banner.html" . }} {{ end }} {{ partial "navbar.html" . }} {{ block "main" . }} {{ end }} {{/* Include modal partial ONCE - Handles all instances of button-modal partial */}} {{/* To add a modal, include another dict based on .Params.marketo_form */}} {{ partial "modal.html" (dict "form" (slice (dict "form_id" "12461" "form_title" "Sign up to receive emails on the latest Vector content and new releases" "form_thankyou" "Thank you for joining our Updates Newsletter"))) }}
{{/* For things pushed down with the footer (e.g. pagination) */}} {{ block "below" . }} {{ end }} {{ partial "footer.html" . }} {{/* For the mobile nav footer */}} {{ block "subfooter" . }} {{ end }} {{/* JS that needs to load last */}} {{ partial "javascript/below.html" . }} {{/* JS that's solely for the front page React.js shenanigans */}} {{ if .IsHome }} {{ partial "javascript/home.html" . }} {{ end }} {{/* React component used for global search */}} {{ partial "javascript/search.html" . }}