Fix build issue for Netlify _headers file

This changes fixes an error where the production site does not build.
Use .RelPermalink to generate the site-relative URL for a page.
pull/34358/head
Tim Bannister 2022-06-17 12:46:01 +01:00
parent 1575e1e208
commit 4fa64207d0
No known key found for this signature in database
GPG Key ID: 1E76582C4F66FA48
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
{{- end -}}
{{- range $pages }}
{{- if or (.Params.deprecated) (eq .Params.class "gridPage") (.Params.case_study_styles) (.Params.css) (.Params.js) }}
{{ .URL }}
{{ .RelPermalink }}
{{- if eq .Params.class "gridPage" }}
Link: </css/gridpage.css>; rel=preload; as=style
{{- end -}}