diff options
author | Alan Pearce | 2018-06-18 21:14:46 +0200 |
---|---|---|
committer | Alan Pearce | 2018-06-18 21:14:46 +0200 |
commit | 15a6ffcdbbba13c1635c0fc45bfbf4313e75c074 (patch) | |
tree | a6db2a7adfd10aca4ca46ed4ea7d15ae9d866483 /layouts | |
parent | 945a668bf0e19806df17af8bb011cc4b13cde85b (diff) | |
download | hyde-15a6ffcdbbba13c1635c0fc45bfbf4313e75c074.tar.lz hyde-15a6ffcdbbba13c1635c0fc45bfbf4313e75c074.tar.zst hyde-15a6ffcdbbba13c1635c0fc45bfbf4313e75c074.zip |
Send syntax css as prefetch when outside a page
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 4 |
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" . }} |