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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang="{{ $.Site.LanguageCode | default "en" }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. {{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
  7. <title>{{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
  8. <meta name="viewport" content="width=device-width,minimum-scale=1">
  9. <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
  10. {{ hugo.Generator }}
  11. {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
  12. {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
  13. <META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
  14. {{ else }}
  15. <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
  16. {{ end }}
  17. {{ $stylesheet := .Site.Data.webpack_assets.app }}
  18. {{ with $stylesheet.css }}
  19. <link href="{{ relURL (printf "%s%s" "dist/" .) }}" rel="stylesheet">
  20. {{ end }}
  21. {{ range .Site.Params.custom_css }}
  22. <link rel="stylesheet" href="{{ relURL (.) }}">
  23. {{ end }}
  24. {{ block "favicon" . }}
  25. {{ partialCached "site-favicon.html" . }}
  26. {{ end }}
  27. {{ if .OutputFormats.Get "RSS" }}
  28. {{ with .OutputFormats.Get "RSS" }}
  29. <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
  30. <link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
  31. {{ end }}
  32. {{ end }}
  33. {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}}
  34. {{- template "_internal/opengraph.html" . -}}
  35. {{- template "_internal/schema.html" . -}}
  36. {{- template "_internal/twitter_cards.html" . -}}
  37. {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
  38. {{ template "_internal/google_analytics_async.html" . }}
  39. {{ end }}
  40. {{ block "head" . }}{{ partial "head-additions.html" . }}{{ end }}
  41. </head>
  42. <body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
  43. {{ block "header" . }}{{ partial "site-header.html" .}}{{ end }}
  44. <main class="pb7" role="main">
  45. {{ block "main" . }}{{ end }}
  46. </main>
  47. {{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
  48. {{ block "scripts" . }}{{ partialCached "site-scripts.html" . }}{{ end }}
  49. </body>
  50. </html>