added automatic version number generator to page titles

pull/24/head
Scott Anderson 2019-01-22 13:31:19 -07:00
parent 3a73e2cf38
commit 0c4199c66a
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) }}
<!doctype html>
<html lang="en">
<head>
@ -6,7 +7,7 @@
<meta name="description" content="{{ if .Description }}{{ .Description }}. {{ end }}">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon">
<title>{{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}InfluxData Documentation</title>
<title>{{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}InfluxData {{ if $currentVersion }}{{print $currentVersion " " }}{{ end }}Documentation</title>
{{ partial "header/stylesheets.html"}}