Skip to content

Commit 4fa6420

Browse files
author
Tim Bannister
committed
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.
1 parent 1575e1e commit 4fa6420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/index.headers

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{- end -}}
1414
{{- range $pages }}
1515
{{- if or (.Params.deprecated) (eq .Params.class "gridPage") (.Params.case_study_styles) (.Params.css) (.Params.js) }}
16-
{{ .URL }}
16+
{{ .RelPermalink }}
1717
{{- if eq .Params.class "gridPage" }}
1818
Link: </css/gridpage.css>; rel=preload; as=style
1919
{{- end -}}

0 commit comments

Comments
 (0)