From ea9de805d069422fe3e763da4faebbe4f188b1c1 Mon Sep 17 00:00:00 2001 From: nevfy Date: Wed, 28 Aug 2024 18:06:59 +0300 Subject: [PATCH] fix: remove lang selector --- .../layouts/partials/navbar-lang-selector.html | 12 ------------ .../google/docsy/layouts/partials/navbar.html | 7 +------ .../docsy/layouts/partials/sidebar-tree.html | 5 ----- layouts/partials/navbar-lang-selector.html | 14 -------------- 4 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 _vendor/github.com/google/docsy/layouts/partials/navbar-lang-selector.html delete mode 100644 layouts/partials/navbar-lang-selector.html diff --git a/_vendor/github.com/google/docsy/layouts/partials/navbar-lang-selector.html b/_vendor/github.com/google/docsy/layouts/partials/navbar-lang-selector.html deleted file mode 100644 index 37ccc11..0000000 --- a/_vendor/github.com/google/docsy/layouts/partials/navbar-lang-selector.html +++ /dev/null @@ -1,12 +0,0 @@ -{{/* Link directly to documentation etc., if possible. */ -}} -{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home -}} - \ No newline at end of file diff --git a/_vendor/github.com/google/docsy/layouts/partials/navbar.html b/_vendor/github.com/google/docsy/layouts/partials/navbar.html index 63b2966..bcb9fe6 100644 --- a/_vendor/github.com/google/docsy/layouts/partials/navbar.html +++ b/_vendor/github.com/google/docsy/layouts/partials/navbar.html @@ -19,7 +19,7 @@ {{- /**/ -}}
diff --git a/_vendor/github.com/google/docsy/layouts/partials/sidebar-tree.html b/_vendor/github.com/google/docsy/layouts/partials/sidebar-tree.html index bd6921d..8033bdf 100644 --- a/_vendor/github.com/google/docsy/layouts/partials/sidebar-tree.html +++ b/_vendor/github.com/google/docsy/layouts/partials/sidebar-tree.html @@ -22,11 +22,6 @@ {{- if .Site.Params.ui.sidebar_search_disable }} td-sidebar-nav--search-disabled{{ end -}} {{- if .Site.Params.ui.sidebar_menu_foldable }} foldable-nav{{ end -}} " id="td-section-nav"> - {{ if (gt (len .Site.Home.Translations) 0) -}} - - {{ end -}} {{ $navRoot := cond (and (ne .Params.toc_root true) (eq .Site.Home.Type "docs")) .Site.Home .FirstSection -}} {{ $ulNr := 0 -}} {{ $ulShow := .Site.Params.ui.ul_show | default 1 -}} diff --git a/layouts/partials/navbar-lang-selector.html b/layouts/partials/navbar-lang-selector.html deleted file mode 100644 index a24b405..0000000 --- a/layouts/partials/navbar-lang-selector.html +++ /dev/null @@ -1,14 +0,0 @@ -{{/* Link directly to documentation etc., if possible. */}} -{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }} -{{ $currentLang := .Language.Lang }} -
- -
\ No newline at end of file