forked from jakub/jakubb-hugo
Remove whitepsace
This commit is contained in:
parent
f21dc85430
commit
ade686db21
@ -2,7 +2,7 @@
|
|||||||
<input class="menu-btn" type="checkbox" id="menu-btn" />
|
<input class="menu-btn" type="checkbox" id="menu-btn" />
|
||||||
|
|
||||||
<div class="menu" >
|
<div class="menu" >
|
||||||
<a href="/{{ .Language.LanguageCode }}" class="logo" >{{ .Site.Title }}</a>
|
<a href="/{{- .Language.LanguageCode -}}" class="logo" >{{- .Site.Title -}}</a>
|
||||||
<label class="menu-icon" for="menu-btn">
|
<label class="menu-icon" for="menu-btn">
|
||||||
<div class="hamburger" onclick="myFunction(this)">
|
<div class="hamburger" onclick="myFunction(this)">
|
||||||
<div class="bar1"></div>
|
<div class="bar1"></div>
|
||||||
@ -17,31 +17,31 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="menu-entries">
|
<div class="menu-entries">
|
||||||
{{ range.Site.Menus.main }}
|
{{- range.Site.Menus.main -}}
|
||||||
{{ if eq .Identifier "home" }}
|
{{- if eq .Identifier "home" -}}
|
||||||
<a class="home-link" href="{{ .URL }}">{{ .Name }}</a>
|
<a class="home-link" href="{{- .URL -}}">{{- .Name -}}</a>
|
||||||
{{ else }}
|
{{- else -}}
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{- .URL -}}">{{- .Name -}}</a>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if gt (len .Site.Languages) 1 }}
|
{{- if gt (len .Site.Languages) 1 -}}
|
||||||
{{ if and (gt (len .Site.Languages) (len .AllTranslations)) .Site.Params.allTranslated }}
|
{{- if and (gt (len .Site.Languages) (len .AllTranslations)) .Site.Params.allTranslated -}}
|
||||||
{{ errorf "Error: %s is missing atleast 1 translation" .RelPermalink }}
|
{{- errorf "Error: %s is missing atleast 1 translation" .RelPermalink -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
<div class="lang-switch" >
|
<div class="lang-switch" >
|
||||||
<input class="lang-btn" type="checkbox" id="lang-btn" />
|
<input class="lang-btn" type="checkbox" id="lang-btn" />
|
||||||
<label class="lang-switch" for="lang-btn">
|
<label class="lang-switch" for="lang-btn">
|
||||||
<a>{{ .Language.LanguageName }} ⏷</a>
|
<a>{{- .Language.LanguageName -}} ⏷</a>
|
||||||
</label>
|
</label>
|
||||||
<div class="translation-list" >
|
<div class="translation-list" >
|
||||||
{{ with .Translations }}
|
{{- with .Translations -}}
|
||||||
{{ range . }}
|
{{- range . -}}
|
||||||
<a href="{{ .RelPermalink }}"> {{ .Language.LanguageName }}</a>
|
<a href="{{- .RelPermalink -}}"> {{- .Language.LanguageName -}}</a>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user