docs-v2/layouts/partials/header.html

34 lines
1.6 KiB
HTML
Raw Normal View History

{{ $productPathData := findRE "[^/]+.*?" .RelPermalink }}
{{ $product := index $productPathData 0 }}
{{ $currentVersion := index $productPathData 1 }}
2018-12-13 18:47:02 +00:00
<!doctype html>
<html lang="en">
<head>
{{ partial "header/google-analytics-head.html" }}
2018-12-13 18:47:02 +00:00
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{{ if eq $product nil }}
<title>InfluxData Documentation</title>
{{ else if eq $currentVersion nil}}
<title>{{ (index .Site.Data.products $product).name }} Documentation</title>
{{ else if eq (len $productPathData) 2 }}
<title>{{ (index .Site.Data.products $product).name }} {{ $currentVersion }} Documentation</title>
{{ else }}
2020-07-30 16:34:24 +00:00
<title>{{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}{{ (index .Site.Data.products $product).name }} {{ if $currentVersion }}{{print $currentVersion " " }}{{ end }}Documentation</title>
{{ end }}
2019-02-22 17:26:45 +00:00
<meta name="description" content="{{ if .Description }}{{ .Description | markdownify | plainify }}{{else}}{{ .Summary | markdownify | plainify }}{{ end }}">
2018-12-13 18:47:02 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/img/favicon.png" type="image/png" sizes="32x32">
{{ partial "header/canonical.html" . }}
2019-01-24 00:30:22 +00:00
{{ partial "header/stylesheets.html" }}
{{ partial "header/google-fonts.html" }}
{{ partial "header/marketing.html" }}
2019-01-24 00:30:22 +00:00
{{ partial "header/javascript.html" }}
<meta name="Copyright" content="InfluxData Inc." />
2018-12-13 18:47:02 +00:00
</head>
<body>
{{ partial "header/google-analytics-body.html" }}