|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="{{ site.Language.LanguageCode }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}> |
| 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 | + {{ $production := hugo.IsProduction }} |
| 12 | + {{ $public := not .Params.private }} |
| 13 | + {{ if and $production $public }} |
| 14 | + <meta name="robots" content="index, follow"> |
| 15 | + {{ else }} |
| 16 | + <meta name="robots" content="noindex, nofollow"> |
| 17 | + {{ end }} |
| 18 | + {{ with .Params.author | default .Site.Params.author }} |
| 19 | + <meta name="author" content = " |
| 20 | + {{- if reflect.IsSlice . -}} |
| 21 | + {{ delimit . ", " | plainify }} |
| 22 | + {{- else -}} |
| 23 | + {{ . | plainify }} |
| 24 | + {{- end -}} |
| 25 | + "> |
| 26 | + {{ end }} |
| 27 | + |
| 28 | + {{ partial "site-style.html" . }} |
| 29 | + {{ partial "site-scripts.html" . }} |
| 30 | + |
| 31 | + {{ block "favicon" . }} |
| 32 | + {{ partialCached "site-favicon.html" . }} |
| 33 | + {{ end }} |
| 34 | + |
| 35 | + {{ if .OutputFormats.Get "RSS" }} |
| 36 | + {{ with .OutputFormats.Get "RSS" }} |
| 37 | + <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> |
| 38 | + <link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" /> |
| 39 | + {{ end }} |
| 40 | + {{ end }} |
| 41 | + |
| 42 | + {{ if .Params.canonicalUrl }} |
| 43 | + <link rel="canonical" href="{{ .Params.canonicalUrl }}"> |
| 44 | + {{ else }} |
| 45 | + <link rel="canonical" href="{{ .Permalink }}"> |
| 46 | + {{ end }} |
| 47 | + |
| 48 | + {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}} |
| 49 | + {{- template "_internal/opengraph.html" . -}} |
| 50 | + {{- template "_internal/schema.html" . -}} |
| 51 | + {{- template "_internal/twitter_cards.html" . -}} |
| 52 | + |
| 53 | + {{ if hugo.IsProduction }} |
| 54 | + {{ template "_internal/google_analytics.html" . }} |
| 55 | + {{ end }} |
| 56 | + {{ block "head" . }}{{ partial "head-additions.html" . }}{{ end }} |
| 57 | + </head> |
| 58 | + |
| 59 | + {{- $environment := hugo.Environment | default "production" -}} |
| 60 | + <body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}} {{ $environment }}"> |
| 61 | + |
| 62 | + {{ block "header" . }}{{ partial "site-header.html" .}}{{ end }} |
| 63 | + <main role="main"> |
| 64 | + {{ block "main" . }}{{ end }} |
| 65 | + </main> |
| 66 | + {{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }} |
| 67 | + </body> |
| 68 | +</html> |
0 commit comments