From 8823a77e03a7907e6eec5a8833e00811314efa9c Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 2 Sep 2024 12:59:21 +0200 Subject: [PATCH] Site redirect (#8029) ### Description of the change Speed up the redirect process --------- Signed-off-by: Alfredo Garcia --- .../template/layouts/_default/baseof.html | 158 ------------------ 1 file changed, 158 deletions(-) diff --git a/site/themes/template/layouts/_default/baseof.html b/site/themes/template/layouts/_default/baseof.html index 49fcc7641a9..7c61cd9619e 100644 --- a/site/themes/template/layouts/_default/baseof.html +++ b/site/themes/template/layouts/_default/baseof.html @@ -4,167 +4,9 @@ - - - - - - - - - - - {{ $title := ""}} - {{ $permalinkAsTitle := ""}} - {{ $description := ""}} - - {{ if .Page.RelPermalink }} - {{ $permalinkAsTitle = (replace (index (last 1 (split (delimit (split .Page.RelPermalink "/") "," "") ",")) 0) "-" " ") | title }} - {{ end }} - - {{ if .IsSection }} - {{ if in $permalinkAsTitle "Latest" }} - {{ $title = "Documentation" }} - {{ $description = "Kubeapps Documentation" }} - {{ else }} - {{ $title = $permalinkAsTitle }} - {{ if in $permalinkAsTitle "Kubeapps" }} - {{ $description = $permalinkAsTitle }} - {{ else }} - {{ $description = printf "%s %s" "Kubeapps" $permalinkAsTitle }} - {{ end }} - {{ end }} - {{ else if .Title }} - {{ $title = .Title }} - {{ if in .Title "Kubeapps" }} - {{ $title = "Home" }} - {{ $description = .Site.Params.description }} - {{ end }} - {{ else }} - {{ $title = $permalinkAsTitle }} - {{ $description = printf "%s %s" "Kubeapps Documentation -" $permalinkAsTitle }} - {{ end }} - - {{ .Site.Title }} | {{ $title }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ $options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "enableSourceMap" true "includePaths" (slice "node_modules/myscss")) }} - {{ $style := resources.Get "scss/site.scss" | resources.ToCSS $options }} - - - - - - - - - - - - - - - {{ with .OutputFormats.Get "RSS" -}} - {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} - {{- end }} - - - - {{ partial "base-header" . }} - {{ block "main" . }}{{ end }} - {{ partial "base-getting-started" . }} - {{ partial "base-footer" . }} - {{ if .Site.Params.docs_search }} - - - - {{ end }} - -