jk.nipponalba.scot website https://jk.nipponalba.scot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
1014 B

5 years ago
5 years ago
5 years ago
  1. <header id="page-top">
  2. <nav>
  3. {{ $currentPage := . }}
  4. {{ range .Site.Menus.main }}
  5. <li id="{{ .Name }}"><a {{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}class="current"{{end}} href="{{ .URL }}" title="{{ .Name }}">{{ .Name }}</a></li>
  6. {{ end }}
  7. {{ if .IsTranslated }}
  8. {{ range .Translations }}
  9. <li><a rel="alternate" href="{{ .RelPermalink }}" hreflang="{{ .Lang }}" lang="{{ .Lang }}">{{ .Language.LanguageName }}<i class="fa fa-language fa-2x language" aria-hidden="true" title="Language"></i></a></li>
  10. {{ end }}
  11. {{ else }}
  12. {{ range .Site.Languages }}
  13. {{ if ne $.Site.Language.Lang .Lang }}
  14. <li><a rel="alternate" href="{{ .Lang | relURL }}" hreflang="{{ .Lang }}" lang="{{ .Lang }}">{{ .LanguageName }} <i class="fa fa-language fa-2x language" aria-hidden="true" title="言語"></i></a></li>
  15. {{ end }}
  16. {{ end }}
  17. {{ end }}
  18. </nav>
  19. </header>