您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

41 行
1.3KB

  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}">
  3. <head>
  4. {{ partial "head-open" . }}
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>{{ .Title }}</title>
  8. {{ if .Site.Params.favicon }}
  9. <link rel="icon" href="{{ .Site.Params.favicon | absURL }}">
  10. {{ end }}
  11. {{ partial "css" . }} {{ partial "js" . }} {{ hugo.Generator }}
  12. {{ with .OutputFormats.Get "RSS" }}
  13. <link href="{{ .RelPermalink }}" rel="alternate" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
  14. <link href="{{ .RelPermalink }}" rel="feed" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
  15. {{ end }}
  16. {{ partial "head-close" . }}
  17. </head>
  18. <body>
  19. {{ partial "body-open" . }}
  20. <nav>
  21. {{ if .Site.Menus.main }}
  22. <div class="left">
  23. {{ range sort .Site.Menus.main }}
  24. <a href="{{ .URL }}">{{ .Name }}</a> /
  25. {{ end }}
  26. </div>
  27. {{ end }}
  28. <a href="#">{{ .Title }}</a>
  29. {{ if .Site.Menus.icon }}
  30. <div class="right">
  31. {{ range sort .Site.Menus.icon }}
  32. <a href="{{ .URL }}"><i class="fa fa-{{ .Name }}"></i></a>
  33. {{ end }}
  34. </div>
  35. {{ end }}
  36. </div>
  37. </nav>