diff --git a/layouts/partials/publication_links.html b/layouts/partials/publication_links.html index a09eb2f1..024ddff1 100644 --- a/layouts/partials/publication_links.html +++ b/layouts/partials/publication_links.html @@ -36,7 +36,7 @@ {{ i18n "btn_project" }} {{ 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 }} diff --git a/layouts/partials/talk_links.html b/layouts/partials/talk_links.html index 50a05664..9b093699 100644 --- a/layouts/partials/talk_links.html +++ b/layouts/partials/talk_links.html @@ -27,7 +27,7 @@ {{ i18n "btn_project" }} {{ 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 }}