Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div class="col-md-9">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-item"><a href="{{ "index.html" | relLangURL }}">Home</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{.CurrentSection.Permalink}}">{{.CurrentSection.Title}}</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
</ol>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
<div class="pull-right">
{{ range .AllTranslations }}
{{ if ne $.Language .Language}}
<a href="{{.Permalink}}"><span class="label label-success">{{ .Language.LanguageName }}</span></a>
{{ $permalink := cond (strings.HasSuffix .Permalink ".html") .Permalink (printf "%sindex.html" .Permalink)}}
<a href="{{$permalink}}"><span class="label label-success">{{ .Language.LanguageName }}</span></a>
{{end}}
{{ end }}
</div>
6 changes: 3 additions & 3 deletions hadoop-hdds/docs/themes/ozonedoc/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-left" style="height: 50px; padding: 5px 5px 5px 0;">
<img src="{{ "ozone-logo-small.png" | relURL }}" width="40"/>
<a href="{{ "index.html" | relLangURL }}" class="navbar-left" style="height: 50px; padding: 5px 10px 5px 0px;">
<img src="{{ "ozone-logo-small.png" | relURL }}" style="width: 40px; padding: 0px;"/>
</a>
<a class="navbar-brand hidden-xs" href="#">
<a class="navbar-brand hidden-xs" href="{{ "index.html" | relLangURL }}">
Apache Hadoop Ozone/HDDS documentation
</a>
<a class="navbar-brand visible-xs-inline" href="#">Hadoop Ozone</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
</li>
{{ else }}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
{{ if eq .URL "/" }}
<a href="{{ "index.html" | relURL }}">
{{ if not (strings.HasSuffix .URL ".html")}}
<a href="{{ "index.html" | relLangURL }}">
{{ else }}
<a href="{{ .URL | relURL }}">
{{ end }}
Expand Down