From e0d6cdd937dc5166a43580098faa499a20e9d154 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 23 Feb 2021 13:56:30 -0700 Subject: [PATCH] hotfix: experimental title fix, telegraf plugin canonical fix --- content/telegraf/v1.14/plugins/plugin-list.md | 1 + layouts/partials/header/title.html | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/content/telegraf/v1.14/plugins/plugin-list.md b/content/telegraf/v1.14/plugins/plugin-list.md index 9a793db73..c1484a25a 100644 --- a/content/telegraf/v1.14/plugins/plugin-list.md +++ b/content/telegraf/v1.14/plugins/plugin-list.md @@ -8,6 +8,7 @@ menu: telegraf_1_14: parent: Plugins weight: 6 +canonical: /{{< latest "telegraf" >}}/plugins/ --- Telegraf is a plugin-driven agent that collects, processes, aggregates, and writes metrics. diff --git a/layouts/partials/header/title.html b/layouts/partials/header/title.html index 30b3f7355..01d6e6496 100644 --- a/layouts/partials/header/title.html +++ b/layouts/partials/header/title.html @@ -24,6 +24,10 @@ {{ $scratch.Set "pageTitle" "" }} {{ if or (eq $product "platform") (gt (len $productPathData) 2) }} {{ $scratch.Set "pageTitle" (cond (ne .Params.seotitle nil) .Params.seotitle .Title) }} + + {{ if and (in .RelPermalink "/experimental/") (eq (len (findRE `[e,E]xperimental` ($scratch.Get "pageTitle") )) 0) }} + {{ $scratch.Set "pageTitle" (print "Experimental " ($scratch.Get "pageTitle")) }} + {{ end }} {{ end }} {{ $pageTitle := $scratch.Get "pageTitle" }}