blob: 36fca1f329108343a88f7bb572296cc70ad49368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{ range .menu }}
<li class="sidebar-button">
{{ if and (or (in .URL "://") (in .URL "mailto:") (in .URL "tel:") (in .URL "callto:") (in .URL "skype:")) (not (and $.root.Site.BaseURL (in .URL (printf "%s" $.root.Site.BaseURL)))) }}
<a class="sidebar-button-link {{ if eq .Identifier "search" }}open-algolia-search{{ end }}" href="{{ .URL | safeURL }}" target="_blank" rel="noopener" title="{{ .Name }}">
{{ else }}
<a class="sidebar-button-link {{ if eq .Identifier "search" }}open-algolia-search{{ end }}" href="{{ .URL | relLangURL }}" title="{{ .Name }}">
{{ end }}
{{ .Pre }}
{{ $name := (i18n (printf "global.%s" .Identifier)) }}
<span class="sidebar-button-desc">{{ if eq (len $name) 0 }}{{ .Name }}{{ else }}{{ $name }}{{ end }}</span>
</a>
</li>
{{ end }}
|