2017-08-10 11:18:22 -04:00
|
|
|
/*
|
|
|
|
X-Frame-Options: DENY
|
|
|
|
X-XSS-Protection: 1; mode=block
|
|
|
|
X-Content-Type-Options: nosniff
|
|
|
|
Referrer-Policy: origin-when-cross-origin
|
|
|
|
*/
|
2018-12-12 03:05:31 -05:00
|
|
|
|
|
|
|
{{ $stylesheet := resources.Get "output/css/app.css" }}
|
|
|
|
{{ $scripts := resources.Get "output/js/app.js" }}
|
|
|
|
|
|
|
|
{{ with $stylesheet -}}Link: <{{ .Permalink | relURL }}>; rel=preload; as=style nopush{{- end}}
|
|
|
|
{{ with $scripts -}}Link: <{{ .Permalink | relURL }}>; rel=preload; as=script nopush{{- end}}
|
|
|
|
{{ range (readDir "/static/fonts/") }}
|
|
|
|
Link: </fonts/{{ .Name }}>; rel=preload; as=font nopush
|
|
|
|
{{ end }}
|
|
|
|
{{ range (readDir "./themes/gohugoioTheme/static/fonts") }}
|
|
|
|
Link: </fonts/{{ .Name }}>; rel=preload; as=font nopush
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with $stylesheet }}
|
|
|
|
{{ .Permalink | relURL }}
|
|
|
|
Cache-Control: public, max-age=31556926,immutable
|
|
|
|
{{end }}
|
|
|
|
{{ with $scripts }}
|
|
|
|
{{ .Permalink | relURL }}
|
|
|
|
Cache-Control: public, max-age=31556926,immutable
|
|
|
|
{{end}}
|
|
|
|
|