mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 00:18:32 +02:00
* Updated Articles Pages * fixes * Links removed * Fixed url * light theme fix * toc fix * new article categories * categorize articles * fix article preview images * rename categories --------- Co-authored-by: trean <trean.mi@gmail.com> Co-authored-by: generall <andrey@vasnetsov.com>
44 lines
2.0 KiB
HTML
44 lines
2.0 KiB
HTML
{{ if hugo.IsProduction }}
|
|
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Config.Services.GoogleAnalytics.ID }}"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments)};
|
|
gtag('js', new Date());
|
|
gtag('config', '{{ .Site.Config.Services.GoogleAnalytics.ID }}');
|
|
</script>
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.googleTagManager }}
|
|
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
})(window,document,'script','dataLayer','{{ .Site.Params.googleTagManager }}');</script>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
<!--Hubspot forms-->
|
|
<script charset="utf-8" type="text/javascript" src="//js-eu1.hsforms.net/forms/embed/v2.js"></script>
|
|
|
|
{{ if eq .Section "benchmarks" }}
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
{{ $benchmarksJs := resources.Get "/js/benchmarks/benchmarks.js" | minify | resources.Fingerprint "sha512" }}
|
|
<script src="{{ $benchmarksJs.RelPermalink }}"></script>
|
|
{{ $filterChartJs := resources.Get "/js/benchmarks/benchmarks_filtered_search.js" | minify | resources.Fingerprint "sha512" }}
|
|
<script src="{{ $filterChartJs.RelPermalink }}"></script>
|
|
{{ end }}
|
|
|
|
{{ if in (slice "docs" "documentation" "articles") .Section }}
|
|
{{ $documentationJs := resources.Get "/js/documentation.js" | js.Build | minify | resources.Fingerprint "sha512" }}
|
|
<script src="{{ $documentationJs.RelPermalink }}"></script>
|
|
{{ end }}
|
|
|
|
<!--Segment-->
|
|
{{ if .Site.Params.segmentWriteKey }}
|
|
{{ $segmentJs := resources.Get "js/segment-setup.js" | js.Build (dict "params" (dict "segmentWriteKey" .Site.Params.segmentWriteKey "gaMeasurementId" .Site.Config.Services.GoogleAnalytics.ID)) | minify | resources.Fingerprint "sha512" }}
|
|
<script src="{{ $segmentJs.RelPermalink }}?v=eu"></script>
|
|
{{ end }}
|