header.html 865 B

1234567891011121314151617181920212223242526
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode | default "en-us" }}">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title>{{ .Title }}</title>
  8. {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
  9. {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
  10. <link rel="stylesheet" href="{{ .Site.BaseURL }}main.css">
  11. {{ if .RSSLink -}}<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}">{{- end }}
  12. {{ .Hugo.Generator }}
  13. </head>
  14. <body>
  15. <header>
  16. <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
  17. <nav>
  18. <ul>
  19. {{ range .Site.Menus.main }}
  20. <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
  21. {{ end }}
  22. </ul>
  23. </nav>
  24. </header>