head.html 887 B

123456789101112131415161718192021222324
  1. {{- $params := .Site.Params }}
  2. {{- $separator := default "|" $params.titleSeparator }}
  3. {{- $title := "" }}
  4. {{- if and .Title (ne (trim (lower .Site.Title) "") (trim (lower .Title) "")) }}
  5. {{- if eq .Kind "taxonomy" }}
  6. {{- $title = default .Title ( i18n (lower .Title) ) }}
  7. {{- else }}
  8. {{- $title = .Title }}
  9. {{- end }}
  10. {{- end }}
  11. <title>{{ with $title }}{{ . }} {{ $separator }} {{ end }}{{ .Site.Title }}</title>
  12. <meta charset="utf-8">
  13. {{ hugo.Generator }}
  14. {{- with $params.ga_verify }}
  15. <meta name="google-site-verification" content="{{ . }}">
  16. {{- end }}
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  19. {{- if (ne hugo.Environment "development") }}
  20. {{- partial "analytics" . }}
  21. {{- end }}
  22. {{- partial "opengraph" . }}
  23. {{- partial "favicon" . }}
  24. <link rel="canonical" href="{{ .Permalink }}">