This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch website
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git


The following commit(s) were added to refs/heads/website by this push:
     new 770aad2  hidden Blog and About menu (#104)
770aad2 is described below

commit 770aad2ce3871788ea54c2d8e9e69f7bce38af22
Author: wanganjuan <[email protected]>
AuthorDate: Sun Apr 24 09:46:30 2022 +0800

    hidden Blog and About menu (#104)
---
 themes/docsy/layouts/partials/navbar.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/themes/docsy/layouts/partials/navbar.html 
b/themes/docsy/layouts/partials/navbar.html
index 2b2a001..6c0e081 100644
--- a/themes/docsy/layouts/partials/navbar.html
+++ b/themes/docsy/layouts/partials/navbar.html
@@ -7,6 +7,7 @@
                <ul class="navbar-nav mt-2 mt-lg-0">
                        {{ $p := . }}
                        {{ range .Site.Menus.main }}
+                       {{ if and (ne .Name "About") (ne .Name "Blog") }}
                        <li class="nav-item mr-4 mb-2 mb-lg-0">
                                {{ $active := or ($p.IsMenuCurrent "main" .) 
($p.HasMenuCurrent "main" .) }}
                                {{ with .Page }}
@@ -19,6 +20,7 @@
                                <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 }}
+                       {{ end }}
                        {{ if  .Site.Params.versions }}
                        <li class="nav-item dropdown mr-4 d-none d-lg-block">
                                {{ partial "navbar-version-selector.html" . }}

Reply via email to