Translations, new icon, blocks, icons & images for softwares and fixing bugs.
This commit is contained in:
parent
09c21184c5
commit
d839b56dd3
31 changed files with 339 additions and 68 deletions
|
@ -3,7 +3,7 @@
|
|||
{{ $currentPage := . }}
|
||||
<div class="nav-mobile">
|
||||
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}" role="button">
|
||||
<img src="/img/icon.png" class="icon-brand" alt=""></img>
|
||||
<img src="/img/icon.png" class="icon-brand" alt=""/>
|
||||
Ad5001
|
||||
</a>
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
|||
<ul class="navbar-list">
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if .HasChildren }}
|
||||
<div class="menu-with-sub">
|
||||
<a href="#" role="button">
|
||||
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
|
||||
{{ .Pre }}
|
||||
|
@ -25,20 +26,42 @@
|
|||
<ul class="sub-menu">
|
||||
{{ range .Children }}
|
||||
<a href="{{ .URL }}" role="button">
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }} background">
|
||||
{{ .Name }}
|
||||
</li>
|
||||
</a>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ else }}
|
||||
<a href="{{ .URL }}" role="button">
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
<a href="{{ .URL }}" role="button">
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</li>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $currentLang := .Site.Language }}
|
||||
{{ if .IsTranslated }}
|
||||
<div class="menu-with-sub">
|
||||
<a href="#" role="button">
|
||||
<li>
|
||||
<img src="/icons/lang.svg" class="icon-as-text"/>
|
||||
<span>{{ i18n "language" }}</span>
|
||||
</li>
|
||||
</a>
|
||||
{{ end }}
|
||||
<ul class="sub-menu">
|
||||
{{ range .Translations }}
|
||||
<a href="{{ .Permalink }}" role="button">
|
||||
<li class="background">
|
||||
<img src="/icons/flag/{{ .Language.Lang }}.svg" class="icon-as-text"/>
|
||||
{{ .Language.LanguageName }}
|
||||
</li>
|
||||
</a>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue