about summary refs log tree commit diff stats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorAlan Pearce2018-06-18 21:14:46 +0200
committerAlan Pearce2018-06-18 21:14:46 +0200
commit15a6ffcdbbba13c1635c0fc45bfbf4313e75c074 (patch)
treea6db2a7adfd10aca4ca46ed4ea7d15ae9d866483 /layouts/partials/head.html
parent945a668bf0e19806df17af8bb011cc4b13cde85b (diff)
downloadhyde-15a6ffcdbbba13c1635c0fc45bfbf4313e75c074.tar.lz
hyde-15a6ffcdbbba13c1635c0fc45bfbf4313e75c074.tar.zst
hyde-15a6ffcdbbba13c1635c0fc45bfbf4313e75c074.zip
Send syntax css as prefetch when outside a page
Diffstat (limited to 'layouts/partials/head.html')
-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" . }}