hugo-theme-even/layouts/partials/header.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

19 lines
No EOL
459 B
HTML

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