hugo-theme-even/layouts/partials/slideout.html
olOwOlo 084f8cb2c3
feat: support multilingual mode
* fix: wrong lang attribute in multilingual mode
  - baseof.html
* fix: rss link in multilingual mode
  - footer.html
* fix: wrong tags, categories, home link in multilingual mode
  - other files ...

This relates to #25
2018-01-30 21:26:46 +08:00

25 lines
No EOL
651 B
HTML

<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="{{ "/" | relLangURL }}" class="logo">
{{- if .Site.Params.logoTitle -}}
{{ .Site.Params.logoTitle }}
{{- else -}}
{{ .Site.Title }}
{{- end -}}
</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
{{ range .Site.Menus.main -}}
<a href="{{ .URL | safeURL }}">
<li class="mobile-menu-item">{{ .Name }}</li>
</a>
{{- end }}
</ul>
</nav>