From 0c4199c66a2d2affa1779e727f80744f64d5fc73 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 22 Jan 2019 13:31:19 -0700 Subject: [PATCH] added automatic version number generator to page titles --- layouts/partials/header.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5e3e3d58e..b90971e70 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,3 +1,4 @@ +{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) }} @@ -6,7 +7,7 @@ - {{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}InfluxData Documentation + {{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}InfluxData {{ if $currentVersion }}{{print $currentVersion " " }}{{ end }}Documentation {{ partial "header/stylesheets.html"}}