about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 88ba0f7..5d1df3c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -12,7 +12,11 @@
 
     <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">
     <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
     {{ partial "hook_head_end.html" . }}