2018-10-04 03:57:18 +00:00
|
|
|
{{- $isBlogPost := eq .Section "blog" }}
|
|
|
|
{{- $ogType := cond (.IsHome) "website" "article" }}
|
2022-10-30 13:15:30 +00:00
|
|
|
|
|
|
|
{{ $outputFormat := partial "outputformat.html" . -}}
|
|
|
|
{{ if and hugo.IsProduction (ne $outputFormat "print") -}}
|
|
|
|
<meta name="robots" content="index, follow">
|
|
|
|
{{ else -}}
|
|
|
|
<meta name="robots" content="noindex, nofollow">
|
|
|
|
{{ end -}}
|
2020-06-15 19:09:57 +00:00
|
|
|
|
2020-07-09 12:31:25 +00:00
|
|
|
<!-- alternative translations -->
|
|
|
|
{{ range .Translations -}}
|
|
|
|
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}">
|
|
|
|
{{ end -}}
|
2020-06-15 19:09:57 +00:00
|
|
|
|
2020-07-09 12:31:25 +00:00
|
|
|
<!-- Docsy head.html begins here -->
|
2018-05-15 22:41:27 +00:00
|
|
|
<meta charset="utf-8">
|
2020-06-15 19:09:57 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
{{ hugo.Generator }}
|
|
|
|
{{ range .AlternativeOutputFormats -}}
|
|
|
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
|
|
|
|
{{ end -}}
|
|
|
|
{{ partialCached "favicons.html" . }}
|
|
|
|
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
{{- template "_internal/opengraph.html" . -}}
|
|
|
|
{{- template "_internal/schema.html" . -}}
|
|
|
|
{{- template "_internal/twitter_cards.html" . -}}
|
2021-12-07 14:16:55 +00:00
|
|
|
{{- if hugo.IsProduction -}}
|
2022-08-16 11:19:08 +00:00
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
2020-06-15 19:09:57 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ partialCached "head-css.html" . "asdf" }}
|
|
|
|
{{ if and (.Site.Params.offlineSearch) (not .Site.Params.gcs_engine_id) }}
|
|
|
|
<script src="https://unpkg.com/lunr@2.1.6/lunr.js"></script>
|
|
|
|
<script src="/js/offline-search.js"></script>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<!-- Docsy head.html ends here -->
|
|
|
|
|
2020-02-27 14:54:19 +00:00
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "https://schema.org",
|
|
|
|
"@type": "Organization",
|
|
|
|
"url": "https://kubernetes.io",
|
2020-02-27 15:14:33 +00:00
|
|
|
"logo": "https://kubernetes.io/images/favicon.png",
|
|
|
|
{{- if not .Site.Params.deprecated }}
|
|
|
|
"potentialAction": {
|
|
|
|
"@type": "SearchAction",
|
2020-08-11 23:23:07 +00:00
|
|
|
"target": {{ printf "%s%s" ("search/" | absURL) "?q={search_term_string}" }},
|
2020-02-27 15:14:33 +00:00
|
|
|
"query-input": "required name=search_term_string"
|
|
|
|
}
|
|
|
|
{{ end }}
|
2020-02-27 14:54:19 +00:00
|
|
|
}
|
|
|
|
</script>
|
2020-02-15 00:33:27 +00:00
|
|
|
<meta name="theme-color" content="#326ce5">
|
2018-07-26 09:53:57 +00:00
|
|
|
{{ partial "css.html" . }}
|
2018-08-13 21:57:35 +00:00
|
|
|
<!-- Content for social media sharing previews -->
|
|
|
|
<!-- Facebook uses the og: stuff, while Twitter and others use twitter: -->
|
2018-10-04 03:57:18 +00:00
|
|
|
<meta name="description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Summary }}{{ end }}">
|
|
|
|
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Summary }}{{ end }}">
|
|
|
|
<meta name="twitter:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Summary }}{{ end }}">
|
|
|
|
<meta property="og:url" content="{{ .Permalink }}">
|
|
|
|
<meta property="og:title" content="{{ if .Params.title }}{{ .Title }}{{ else }}{{ .Summary | truncate 10 }}{{ end }}">
|
|
|
|
<meta name="twitter:title" content="{{ if .Params.title }}{{ .Title }}{{ else }}{{ .Summary | truncate 10 }}{{ end }}">
|
2019-03-27 23:28:50 +00:00
|
|
|
<meta name="twitter:image" content="https://kubernetes.io/images/favicon.png" />
|
2018-08-13 21:57:35 +00:00
|
|
|
<!-- Alt text for the site image -->
|
2019-03-27 23:28:50 +00:00
|
|
|
<meta name="twitter:image:alt" content="{{ site.Title }}">
|
2018-10-04 03:57:18 +00:00
|
|
|
{{ if $isBlogPost }}
|
2018-06-07 21:55:24 +00:00
|
|
|
{{ with findRE "<img.*?>" .Content 1 }}
|
2018-10-04 03:57:18 +00:00
|
|
|
<meta property="og:image" content="{{ index . 0 | replaceRE ".*src=\"(.+?)\".*" "$1" }}">
|
2018-06-07 21:55:24 +00:00
|
|
|
{{ end }}
|
2018-10-04 03:57:18 +00:00
|
|
|
{{ else }}
|
2019-03-27 23:28:50 +00:00
|
|
|
<meta property="og:image" content="{{ "/images/kubernetes-horizontal-color.png" | relURL }}">
|
2018-05-15 22:41:27 +00:00
|
|
|
{{ end }}
|
2018-10-04 03:57:18 +00:00
|
|
|
<meta property="og:type" content="{{ $ogType }}">
|
2019-08-22 00:20:32 +00:00
|
|
|
|
2022-07-03 19:21:30 +00:00
|
|
|
<script src="/js/jquery-3.6.0.min.js" intregrity="sha384-vtXRMe3mGCbOeY7l30aIg8H9p3GdeSe4IFlP6G8JMa7o7lXvnz3GFKzPxzJdPfGK" crossorigin="anonymous"></script>
|
2023-06-20 11:39:55 +00:00
|
|
|
<!--script src="https://unpkg.com/split.js/dist/split.min.js"></script-->
|
|
|
|
<script src="/js/split-1.6.0.js" intregrity="sha384-0blL3GqHy6+9fw0cyY2Aoiwg4onHAtslAs4OkqZY7UQBrR65/K4gI+hxLdWDrjpz"></script>
|
2022-07-03 19:21:30 +00:00
|
|
|
|
2022-02-08 11:09:06 +00:00
|
|
|
{{- if eq (lower .Params.cid) "community" -}}
|
|
|
|
<script defer src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
|
|
|
{{- end -}}
|
2018-05-15 22:41:27 +00:00
|
|
|
{{ with .Params.js }}{{ range (split . ",") }}<script src="{{ (trim . " ") | relURL }}"></script><!-- custom js added -->
|
2020-07-18 12:09:24 +00:00
|
|
|
{{ end }}{{ else }}<!-- no custom js detected -->{{ end }}
|
2024-10-27 16:38:31 +00:00
|
|
|
|
|
|
|
{{/* make sure that head-end hook comes last */}}
|
|
|
|
{{ partial "hooks/head-end.html" . }}
|