mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
fix header in mobile
Signed-off-by: liuboaibc <kukudehero@gmail.com>
This commit is contained in:
parent
3684f5d52d
commit
3847ee20f5
|
|
@ -1 +1 @@
|
|||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text }}</a>
|
||||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text }}</a>
|
||||
|
|
@ -110,13 +110,13 @@
|
|||
<ul class="dropdown-menu">
|
||||
{{ range .Children }}
|
||||
<li {{ if eq $section .URL }} class="active"{{ end}}>
|
||||
<a href="{{ .URL | relLangURL }}">{{ .Name }}</a>
|
||||
<a href="{{ .URL | relLangURL }}">{{ .Name | safeHTML }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ else }}
|
||||
<li {{ if eq $section .URL }} class="active"{{ end}}><a data-docs="{{ .Name }}" href="{{ .URL | relLangURL }}">{{ .Name }}</a></li>
|
||||
<li {{ if eq $section .URL }} class="active"{{ end}}><a data-docs="{{ .Name }}" href="{{ .URL | relLangURL }}">{{ .Name | safeHTML }}</a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue