about summary refs log tree commit diff stats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorAlan Pearce2018-06-17 19:23:18 +0200
committerAlan Pearce2018-06-17 19:23:18 +0200
commit743253f995d352f51fc7b7681948b20c79609060 (patch)
treee7992e69cff8aabd1f8c3e571a74d6ecbb130477 /layouts/partials/head.html
parent61b24805867fc6d2aa67ede189d43faf86220ad4 (diff)
parent8cab2d27e2b7727e632d817dbdd41a97cc99af00 (diff)
downloadhyde-743253f995d352f51fc7b7681948b20c79609060.tar.lz
hyde-743253f995d352f51fc7b7681948b20c79609060.tar.zst
hyde-743253f995d352f51fc7b7681948b20c79609060.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 59304c2..c92ea95 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,15 +4,16 @@
 		<meta charset="UTF-8">
 		<meta name="viewport" content="width=device-width,initial-scale=1">
 
-		{{ if .IsHome }}
+		{{ if .IsHome -}}
 		<title>{{ .Site.Title }}</title>
-		{{ else }}
+		{{- else -}}
 		<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
-		{{ end }}
+		{{- end }}
 
+		<link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
 		<link rel="stylesheet" href="/css/poole.css">
 		<link rel="stylesheet" href="/css/syntax.css">
 		<link rel="stylesheet" href="/css/hyde.css">
 		<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
-		<link href="{{ if .IsPage }}{{ .Permalink | replaceRE "/$" "" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical">
+		{{ partial "hook_head_end.html" . }}
 	</head>