57 lines
2.9 KiB
HTML
57 lines
2.9 KiB
HTML
{{- $isBlogPost := eq .Section "blog" }}
|
|
{{- $ogType := cond (.IsHome) "website" "article" }}
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-36037335-10"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'UA-36037335-10');
|
|
</script>
|
|
<meta charset="utf-8">
|
|
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ site.Title }}</title>
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "Organization",
|
|
"url": "https://kubernetes.io",
|
|
"logo": "https://kubernetes.io/images/favicon.png"
|
|
}
|
|
</script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="theme-color" content="#326ce5">
|
|
<link rel="shortcut icon" type="image/png" href="{{ "images/favicon.png" | relURL }}">
|
|
{{ partial "css.html" . }}
|
|
<!-- Content for social media sharing previews -->
|
|
<!-- Facebook uses the og: stuff, while Twitter and others use twitter: -->
|
|
<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 }}">
|
|
<meta name="twitter:image" content="https://kubernetes.io/images/favicon.png" />
|
|
<!-- Alt text for the site image -->
|
|
<meta name="twitter:image:alt" content="{{ site.Title }}">
|
|
{{ if $isBlogPost }}
|
|
{{ with findRE "<img.*?>" .Content 1 }}
|
|
<meta property="og:image" content="{{ index . 0 | replaceRE ".*src=\"(.+?)\".*" "$1" }}">
|
|
{{ end }}
|
|
{{ else }}
|
|
<meta property="og:image" content="{{ "/images/kubernetes-horizontal-color.png" | relURL }}">
|
|
{{ end }}
|
|
<meta property="og:type" content="{{ $ogType }}">
|
|
<script src="{{ "js/anchor-4.1.1.min.js" | relURL }}"></script>
|
|
<script src="{{ "js/jquery-3.2.1.min.js" | relURL }}"></script>
|
|
<script src="{{ "js/jquery-ui-1.12.1.min.js" | relURL }}"></script>
|
|
<script src="{{ "js/bootstrap-4.3.1.min.js" | relURL }}"></script>
|
|
<script src="{{ "js/sweetalert-2.1.2.min.js" | relURL }}"></script>
|
|
|
|
<script src="{{ "js/script.js" | relURL }}"></script>
|
|
<script src="{{ "js/custom-jekyll/tags.js" | relURL }}"></script>
|
|
{{ with .Params.js }}{{ range (split . ",") }}<script src="{{ (trim . " ") | relURL }}"></script><!-- custom js added -->
|
|
{{ end }}{{ else }}<!-- no custom js detected -->{{ end }}
|
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
<link rel="apple-touch-icon" href="/images/kubernetes-192x192.png">
|