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.

42 lines
1.5 KiB

  1. <head {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  3. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
  4. {{ with .Site.Params.description -}}
  5. <meta name="description" content="{{ . }}">
  6. {{- end }}
  7. {{ .Hugo.Generator }}
  8. <title>{{ if not .IsHome }}{{ .Title }} &mdash;{{ end }} {{ .Site.Title }}</title>
  9. <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/vendor/purecss/pure-min.css" type="text/css" />
  10. <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/style.css" type="text/css" />
  11. </head>
  12. <nav>
  13. <div class="pure-menu pure-menu-horizontal">
  14. <ul class="pure-menu-list float-left">
  15. <li class="pure-menu-list">
  16. <a href="{{ .Site.BaseURL }}" class="pure-menu-heading pure-menu-link" title="Home">{{ .Site.Title }}</a>
  17. </li>
  18. {{ range where (sort .Site.Pages "Weight" "desc") "Type" "navLink"}}
  19. <li class="pure-menu-list"><a href="{{ .URL }}" class="pure-menu-link" title="{{ .Title }}">{{ .Title }}</a></li>
  20. {{ end }}
  21. </ul>
  22. <ul class="pure-menu-list float-right">
  23. {{ range sort .Site.Params.links "weight" "desc" }}
  24. <li class="pure-menu-list">
  25. {{ if .image }}
  26. <a href="{{ .url }}" target="_blank" title="{{ .title }}">
  27. <img src="{{ .image | absURL }}" />
  28. </a>
  29. {{ else }}
  30. <a href="{{ .url }}" target="_blank" class="pure-menu-link" title="{{ .title }}">
  31. {{ .title }}
  32. </a>
  33. {{ end }}
  34. </a>
  35. </li>
  36. {{ end }}
  37. </ul>
  38. </div>
  39. </nav>