Merge pull request #20 from go-gitea/languages

Added locale selection to footer
This commit is contained in:
Thomas Boerger 2016-12-16 20:45:37 +01:00 committed by GitHub
commit efb267683e
1 changed files with 7 additions and 1 deletions

View File

@ -3,8 +3,14 @@
<div class="row">
<div class="col-xs-12 text-xs-center">
<p>
Copyright &copy; 2016 <a href="{{ .Site.Params.website }}">{{ .Site.Params.author }}</a>. All rights reserved. Made with <i class="fa fa-heart" aria-hidden="true"></i> and <a href="https://gohugo.io">Hugo</a>. Hosted and sponsored by <a href="https://www.digitalocean.com/">DigitalOcean</a>.
Copyright &copy; {{ .Now.Year }} <a href="{{ .Site.Params.website }}">{{ .Site.Params.author }}</a>. All rights reserved. Made with <i class="fa fa-heart" aria-hidden="true"></i> and <a href="https://gohugo.io">Hugo</a>. Hosted and sponsored by <a href="https://www.digitalocean.com/">DigitalOcean</a>.
</p>
<nav class="nav nav-inline">
{{ $lang := .Lang }}{{ $base := .Site.BaseURL }}{{ range .Site.Languages }}
<a class="nav-link" href="{{ $base }}{{ .Lang }}">{{ .LanguageName }}</a>
{{ end }}
</ul>
</div>
</div>
</div>