Make cache bust hashes optional.

This commit is contained in:
Fredrik Jonsson 2017-03-20 22:31:10 +01:00
commit 0d35371f5f

View file

@ -2,7 +2,7 @@
<meta name="MobileOptimized" content="width">
<meta name="HandheldFriendly" content="true">
{{ .Hugo.Generator }}
<link rel="stylesheet" href="/css/styles.css?{{ readFile "/public/css/styles.css" | sha1}}">
<link rel="stylesheet" href="/css/styles.css{{ if .Site.Params.cacheBustCSS }}?{{ readFile "/public/css/styles.css" | sha1 }}{{ end }}">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="shortcut icon" href="{{ .Site.BaseURL }}favicon.ico" type="image/vnd.microsoft.icon">
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}apple-touch-icon.png">