💄 🐛 Fixed multi languages page display & i18n translate message.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<img class="custom-logo-image" src="{{ .Site.Params.customLogo }}" alt="{{ $title }}">
|
||||
{{- end }}
|
||||
|
||||
<a href="{{ .Site.BaseURL }}" class="brand" rel="start">
|
||||
<a href="{{ "/" | relLangURL }}" class="brand" rel="start">
|
||||
<i class="logo-line"></i>
|
||||
<h1 class="site-title">{{ $title }}</h1>
|
||||
<i class="logo-line"></i>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{{- $active := or ($curP.IsMenuCurrent "main" .) ($curP.HasMenuCurrent "main" .) }}
|
||||
{{- $active = or $active (eq .URL "/")}}
|
||||
<li class="menu-item menu-item-{{ .Identifier }}">
|
||||
<a href="{{ .URL }}" class="hvr-icon-pulse {{if $active }} menu-item-active{{ end }}" rel="section">
|
||||
<a href="{{ .URL | relLangURL }}" class="hvr-icon-pulse {{if $active }} menu-item-active{{ end }}" rel="section">
|
||||
{{- if $ms.icons }}<i class="fa fa-{{ .Pre }} hvr-icon"></i>{{ end }}{{- .Name }}
|
||||
{{- if and $ms.badges (eq .Identifier "archives" ) }}
|
||||
<span class="badge">{{ $.Scratch.Get "postsCount" }}</span>
|
||||
|
||||
Reference in New Issue
Block a user