]> njoseph.me Git - hyde.git/blobdiff - layouts/partials/head.html
Trim more whitespace in template logic
[hyde.git] / layouts / partials / head.html
index 23767d6f975a99b0069ae7fd86a87a23d5971605..d602f3f78476d4f328d4c70d365275c946946cfd 100644 (file)
@@ -8,9 +8,14 @@
   <!-- Enable responsiveness on mobile devices-->
   <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
 
-  <title> {{ .Title }} &middot; {{ .Site.Title }} </title>
+  {{ if .IsHome -}}
+  <title>{{ .Site.Title }}</title>
+  {{- else -}}
+  <title>{{ .Title }} &middot; {{ .Site.Title }}</title>
+  {{- end }}
 
   <!-- CSS -->
+  <link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css">
   <link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
@@ -21,5 +26,5 @@
   <link rel="shortcut icon" href="/favicon.png">
 
   <!-- RSS -->
-  <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+  <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
 </head>