This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 72293e8f617 Update algolia index key (#1364)
72293e8f617 is described below
commit 72293e8f617c3552f1d5b3c4ccb650fb8357a51f
Author: Albumen Kevin <[email protected]>
AuthorDate: Wed Aug 10 19:43:13 2022 +0800
Update algolia index key (#1364)
---
layouts/partials/hooks/body-end.html | 8 ++++----
layouts/partials/navbar.html | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 4 deletions(-)
diff --git a/layouts/partials/hooks/body-end.html
b/layouts/partials/hooks/body-end.html
index 54a5ed17b8b..7318ae21231 100644
--- a/layouts/partials/hooks/body-end.html
+++ b/layouts/partials/hooks/body-end.html
@@ -4,8 +4,8 @@
docsearch({
// Your apiKey and indexName will be given to you once
// we create your config
- appId: 'BH4D9OD16A',
- apiKey: '38eff7758162fbf70f2b8484932e62ae',
+ appId: 'L5F4T9F0I1',
+ apiKey: '364ae307e1da9d02b2335675e9db1eb1',
indexName: 'apache_dubbo',
// Replace inputSelector with a CSS selector
// matching your search input
@@ -16,8 +16,8 @@
docsearch({
// Your apiKey and indexName will be given to you once
// we create your config
- appId: 'BH4D9OD16A',
- apiKey: '38eff7758162fbf70f2b8484932e62ae',
+ appId: 'L5F4T9F0I1',
+ apiKey: '364ae307e1da9d02b2335675e9db1eb1',
indexName: 'apache_dubbo',
// Replace inputSelector with a CSS selector
// matching your search input
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
new file mode 100644
index 00000000000..12814da0463
--- /dev/null
+++ b/layouts/partials/navbar.html
@@ -0,0 +1,35 @@
+{{ $cover := .HasShortcode "blocks/cover" }}
+<nav class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover}}
td-navbar-cover {{ end }}flex-column flex-md-row td-navbar">
+ <a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
+ <span class="navbar-logo">{{ if .Site.Params.ui.navbar_logo
}}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML
}}{{ end }}{{ end }}</span><span class="text-uppercase font-weight-bold">{{
.Site.Title }}</span>
+ </a>
+ <div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar">
+ <ul class="navbar-nav mt-2 mt-lg-0">
+ {{ $p := . }}
+ {{ range .Site.Menus.main }}
+ <li class="nav-item mr-4 mb-2 mb-lg-0">
+ {{ $active := or ($p.IsMenuCurrent "main" .)
($p.HasMenuCurrent "main" .) }}
+ {{ with .Page }}
+ {{ $active = or $active ( $.IsDescendant .) }}
+ {{ end }}
+ {{ $pre := .Pre }}
+ {{ $post := .Post }}
+ {{ $url := urls.Parse .URL }}
+ {{ $baseurl := urls.Parse $.Site.Params.Baseurl
}}
+ <a class="nav-link{{if $active }}
active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL |
relLangURL }}{{ end }}" {{ if ne $url.Host $baseurl.Host }}target="_blank" {{
end }}>{{ with .Pre}}{{ $pre }}{{ end }}<span{{if $active }}
class="active"{{end}}>{{ .Name }}</span>{{ with .Post}}{{ $post }}{{ end }}</a>
+ </li>
+ {{ end }}
+ {{ if .Site.Params.versions }}
+ <li class="nav-item dropdown mr-4 d-none d-lg-block">
+ {{ partial "navbar-version-selector.html" . }}
+ </li>
+ {{ end }}
+ {{ if (gt (len .Site.Home.Translations) 0) }}
+ <li class="nav-item dropdown d-lg-block">
+ {{ partial "navbar-lang-selector.html" . }}
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+ <div class="navbar-nav d-none d-lg-block">{{ partial
"search-input.html" . }}</div>
+</nav>