diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 54 |
1 files changed, 23 insertions, 31 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 30ff316..d7b936c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,34 +1,26 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}> -<head> - <link href="//gmpg.org/xfn/11" rel="profile"> - <meta http-equiv="content-type" content="text/html; charset=utf-8"> - {{ hugo.Generator }} +<html lang="en-GB"> + <head> + <link href="//gmpg.org/xfn/11" rel="profile"> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width,initial-scale=1"> - <!-- Enable responsiveness on mobile devices--> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> + {{- if .IsHome }} + <title>{{ .Site.Title }}</title> + {{ else }} + <title>{{ .Title }} · {{ .Site.Title }}</title> + {{ end -}} - {{ if .IsHome -}} - <title>{{ .Site.Title }}</title> - {{- else -}} - <title>{{ .Title }} · {{ .Site.Title }}</title> - {{- end }} - - <!-- CSS --> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print"> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css"> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css"> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css"> - {{ partial "head_fonts.html" . }} - - <!-- Icons --> - <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png"> - <link rel="shortcut icon" href="/favicon.png"> - - <!-- RSS etc --> - {{ range .AlternativeOutputFormats -}} - {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} - {{ end -}} - - {{ partial "hook_head_end.html" . }} -</head> + <link rel="stylesheet" href="/css/print.css" media="print"> + <link rel="stylesheet" href="/css/poole.css"> + {{- if .IsPage }} + <link rel="stylesheet" href="/css/syntax.css"> + {{ else }} + <link rel="prefetch" href="/css/syntax.css"> + {{- end }} + <link rel="stylesheet" href="/css/hyde.css"> + {{ range .AlternativeOutputFormats -}} + {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} + {{ end -}} + {{ partial "hook_head_end.html" . }} + </head> |