Adds asset fingerprinting for cache issues; moves js file to assets to take advantage of this
This commit is contained in:
parent
735b35e5dd
commit
299cf01171
@ -19,11 +19,13 @@
|
||||
{{ end }}
|
||||
</title>
|
||||
<meta name="description" content="{{ $description }}">
|
||||
{{ with resources.Get "css/site.css" }}
|
||||
{{ with resources.Get "css/site.css" | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ if or .IsHome (and .IsPage (eq .Section "studies") .Params.study.toc) }}
|
||||
<script src="{{ "js/main.js" | relURL }}" defer></script>
|
||||
{{ with resources.Get "js/main.js" | fingerprint }}
|
||||
<script src="{{ .RelPermalink }}" defer></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</head>
|
||||
<body id='{{ with .Slug }}{{ . }}{{ else }}default{{ end }}'>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user