From 6f087d2c64b1489eb5817d746a441195b9b5bd5f Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sat, 2 Nov 2024 12:06:50 +0100 Subject: [PATCH] chore(docs): add top-header partial Signed-off-by: Ettore Di Giacinto --- docs/layouts/partials/docs/top-header.html | 133 +++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 docs/layouts/partials/docs/top-header.html diff --git a/docs/layouts/partials/docs/top-header.html b/docs/layouts/partials/docs/top-header.html new file mode 100644 index 00000000000..375ff779ea3 --- /dev/null +++ b/docs/layouts/partials/docs/top-header.html @@ -0,0 +1,133 @@ + +
+
+
+ +
+ {{ with resources.Get "images/logos/mark.svg" }} + {{ .Content | safeHTML }} + {{ end }} +
+
+ {{ with resources.Get "images/logos/logo.svg" }} + {{ .Content | safeHTML }} + {{ end }} +
+
+ + {{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}} +
+ {{ end }} + {{ if or (not (isset .Site.Params.flexsearch "enabled")) (eq .Site.Params.flexsearch.enabled true) -}} + {{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}} + {{ else }} + + + {{ end }} + {{ end -}} +
+
+
Star us on GitHub ! 
+ + Star +
+
+ + {{ if eq .Site.Params.docs.darkMode true -}} + + {{ end -}} + {{ if .Site.IsMultiLingual }} + + {{ end }} +
+
+ + {{ if or (not (isset .Site.Params.flexsearch "enabled")) (eq .Site.Params.flexsearch.enabled true) -}} + {{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}} + {{ else }} +
+
+
+
  • + + + {{ i18n "search_navigate" | default "to navigate" }} +
  • +
  • + + {{ i18n "search_select" | default "to select" }} +
  • +
  • + + {{ i18n "search_close" | default "to close" }} +
  • +
    +
    +
    + + +
    +
    +
    +
    +
    + {{ end }} + {{ end }} + +
    + \ No newline at end of file