2018-10-04 03:57:18 +00:00
|
|
|
{{- $isBlogPost := eq .Section "blog" }}
|
|
|
|
{{- $ogType := cond (.IsHome) "website" "article" }}
|
2018-07-13 17:34:26 +00:00
|
|
|
<!-- 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>
|
2018-05-15 22:41:27 +00:00
|
|
|
<meta charset="utf-8">
|
2019-02-05 16:33:23 +00:00
|
|
|
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ site.Title }}</title>
|
2018-05-15 22:41:27 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link rel="shortcut icon" type="image/png" href="{{ "images/favicon.png" | relURL }}">
|
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 }}">
|
2018-08-13 21:57:35 +00:00
|
|
|
<!-- Alt text for the site image -->
|
2019-02-05 16:33:23 +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 }}
|
|
|
|
<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 }}">
|
2018-09-10 20:09:36 +00:00
|
|
|
<script src="{{ "js/anchor-4.1.1.min.js" | relURL }}"></script>
|
2018-08-31 03:24:28 +00:00
|
|
|
<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-3.3.7.min.js" | relURL }}"></script>
|
|
|
|
<script src="{{ "js/sweetalert-1.1.3.min.js" | relURL }}"></script>
|
2018-05-15 22:41:27 +00:00
|
|
|
<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 -->
|
2018-05-18 17:44:52 +00:00
|
|
|
{{ end }}{{ else }}<!-- no custom js detected -->{{ end }}
|