We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c87d4 commit 476a895Copy full SHA for 476a895
layouts/_partials/assets/download.html
@@ -23,7 +23,7 @@
23
{{ if not $error }}
24
{{- $download = partial "utilities/GetTargetPath.html" (dict "path" $args.download "page" page) -}}
25
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
26
- {{ if page }}
+ {{ if page.File }}
27
{{- errorf "Cannot find download file for page '%s': %s" page.File.Path $download -}}
28
{{ else }}
29
{{- errorf "Cannot find download file: %s" $download -}}
0 commit comments