blob: edfecc4fc364b13cfe2ef9356e94e0d12baafd7d [file] [log] [blame]
{{/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
*/}}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ .Description | default $.Site.Params.description }}">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700" rel="stylesheet">
{{ $scssMain := "scss/main.scss"}}
{{ if .Site.IsServer }}
{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) | postCSS }}
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
{{ else }}
{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }}
<link rel="preload" href="{{ $css.RelPermalink }}" as="style">
<link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}">
{{ end }}
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<style>
.body__contained img { max-width: 100% }
</style>
{{ $bootstrap := resources.Get "js/bootstrap.min.js" | fingerprint }}
<script type="text/javascript" src="{{ $bootstrap.RelPermalink }}" defer></script>
<!-- TODO [BEAM-12644]: Create an asset pipeline so we don't have to version .js files. -->
{{ $switchV2 := resources.Get "js/language-switch-v2.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $switchV2.RelPermalink }}" defer></script>
{{ $sectionNav := resources.Get "js/section-nav.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $sectionNav.RelPermalink }}" defer></script>
{{ $expandableList := resources.Get "js/expandable-list.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $expandableList.RelPermalink }}" defer></script>
{{ $copyToClipboard := resources.Get "js/copy-to-clipboard.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $copyToClipboard.RelPermalink }}" defer></script>
{{ $calendar := resources.Get "js/calendar.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $calendar.RelPermalink }}" defer></script>
{{ $fixPlaygroundNestedScroll := resources.Get "js/fix-playground-nested-scroll.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $fixPlaygroundNestedScroll.RelPermalink }}" defer></script>
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="/feed.xml">
<link rel="canonical" href="{{ .Site.Params.hostName }}{{ .Permalink | absURL }}" data-proofer-ignore>
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css"/>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73650088-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Hotjar Tracking Code for https://beam.apache.org/ -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:2182187,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>