|
| 1 | +<head> |
| 2 | + <meta charset="utf-8" /> |
| 3 | + {{ hugo.Generator }} |
| 4 | + |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 7 | + <meta name="author" content="{{ .Site.Author.name }}" /> |
| 8 | + <meta property="og:url" content="{{ .Permalink }}" /> |
| 9 | + <link rel="canonical" href="{{ .Permalink }}" /> |
| 10 | + |
| 11 | + {{- if .Site.Params.staticPrefix -}} |
| 12 | + <link rel="dns-prefetch" href="{{ .Site.Params.staticPrefix }}" /> |
| 13 | + {{- end -}} |
| 14 | + |
| 15 | + {{- if .Site.Params.favicon -}} |
| 16 | + <link rel="apple-touch-icon" href="{{ .Site.Params.favicon }}" /> |
| 17 | + <link rel="icon" href="{{ .Site.Params.favicon }}" /> |
| 18 | + <link rel="shortcut" href="{{ .Site.Params.favicon }}" /> |
| 19 | + {{- end -}} |
| 20 | + <link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}"> |
| 21 | + |
| 22 | + {{ partial "seo" . }} |
| 23 | + |
| 24 | + {{- if .IsHome -}} |
| 25 | + <title>{{ .Site.Title }}</title> |
| 26 | + <meta property="og:title" content="{{ .Site.Title }}" /> |
| 27 | + <meta property="og:type" content="website" /> |
| 28 | + <meta property="og:description" content="{{ .Site.Params.description }}" /> |
| 29 | + <meta name="description" content="{{ .Site.Params.description }}" /> |
| 30 | + {{- else -}} |
| 31 | + <title>{{ .Title }}</title> |
| 32 | + <meta property="og:title" content="{{ .Title }}" /> |
| 33 | + <meta property="og:type" content="article" /> |
| 34 | + <meta property="og:description" content="{{ default .Summary .Description | plainify }}" /> |
| 35 | + <meta name="description" content="{{ default .Summary .Description | plainify }}" /> |
| 36 | + {{- end }} |
| 37 | + <meta property="og:locale" content="{{ .Site.LanguageCode }}" /> |
| 38 | + {{- if .Params.album -}} |
| 39 | + <meta property="og:image" content="{{ .Params.album }}" /> |
| 40 | + {{- else -}} |
| 41 | + <meta property="og:image" content="{{ .Site.Params.favicon }}" /> |
| 42 | + {{ end }} |
| 43 | + |
| 44 | + {{ with resources.Get "css/index.css" | minify }} |
| 45 | + <style>{{ .Content | safeCSS }}</style> |
| 46 | + {{ end }} |
| 47 | + {{ with resources.Get "css/flexboxgrid-6.3.1.min.css" | minify }} |
| 48 | + <style>{{ .Content | safeCSS }}</style> |
| 49 | + {{ end }} |
| 50 | + |
| 51 | + {{ range .Site.Params.extraCSSFiles -}} |
| 52 | + <link rel="stylesheet" href="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}"> |
| 53 | + {{- end }} |
| 54 | + |
| 55 | + <link href="{{ .Site.Params.staticPrefix }}{{ "index.xml" | relURL }}" rel="alternate" type="application/rss+xml" |
| 56 | + title="{{ .Site.Title }}"> |
| 57 | + <!-- fonts --> |
| 58 | + <link rel="preconnect" href="https://fonts.gstatic.com"> |
| 59 | + <link href="https://fonts.googleapis.com/css?family=Bree+Serif|Bungee+Shade" rel="stylesheet"> |
| 60 | + <!-- quicklink require --> |
| 61 | + <!-- <script> |
| 62 | + /* Disable minification (remove `.min` from URL path) for more info |
| 63 | + https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver |
| 64 | + */ |
| 65 | + (function (undefined) { }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {}); |
| 66 | + </script> --> |
| 67 | + |
| 68 | + {{ if .Site.Params.TwitterCards }}{{ template "_internal/twitter_cards.html" . }}{{ end }} |
| 69 | + {{ .Site.Params.extraHead | safeHTML }} |
| 70 | +</head> |
0 commit comments