Skip to content

Commit

Permalink
docs: preconnect when not examples layout
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 8, 2024
1 parent 9b524d0 commit 4b0c373
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions site/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
<meta name="docsearch:language" content="en">
<meta name="docsearch:version" content="{{ .Site.Params.docs_version }}">

{{ if (ne .Page.Layout "examples") -}}
<link rel="preconnect" href="https://AK7KMZKZHQ-dsn.algolia.net" crossorigin>
{{- end }}

<title>{{ if .IsHome }}{{ .Site.Title | markdownify }} · {{ .Site.Params.subtitle | markdownify }}{{ else }}{{ .Title | markdownify }} · {{ .Site.Title | markdownify }} v{{ .Site.Params.docs_version }}{{ end }}</title>

<link rel="canonical" href="{{ .Permalink }}">

<link rel="preconnect" href="https://AK7KMZKZHQ-dsn.algolia.net" crossorigin>

{{ with .Params.robots -}}
<meta name="robots" content="{{ . }}">
{{- end }}
Expand Down

0 comments on commit 4b0c373

Please sign in to comment.