From 57908df9569871d2f00cde9d8cdf50bb865bf677 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sat, 2 Nov 2024 12:07:40 +0100 Subject: [PATCH] chore(docs): add top-header partial (#4034) 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 00000000..375ff779 --- /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