Provide friendlier error messages

In case of broken `projects` link in talk/publication front matter

See #534
This commit is contained in:
George Cushen committed 2018-05-18 01:24:12 +01:00
1 parent 9842f517dd
commit 8a883d4d40
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@
{{ i18n "btn_project" }}
</a>
{{ else }}
{{ errorf "Please check that the `projects` parameter in the front matter of content in `content/publication/` refers to an existing filename (without .md extension) of a published project." }}
{{ errorf "The `projects` parameter in `content/%s` references a project file, `content/project/%s`, which cannot be found. Please either set `projects = []` or fix the reference." $.File.Path . }}
{{ end }}
{{ end }}
{{ else }}
+1 -1
View File
@@ -27,7 +27,7 @@
{{ i18n "btn_project" }}
</a>
{{ else }}
{{ errorf "Please check that the `projects` parameter in the front matter of content in `content/talk/` refers to an existing filename (without .md extension) of a published project." }}
{{ errorf "The `projects` parameter in `content/%s` references a project file, `content/project/%s`, which cannot be found. Please either set `projects = []` or fix the reference." $.File.Path . }}
{{ end }}
{{ end }}
{{ range $.Params.url_custom }}