diff --git a/layouts/partials/publication_links.html b/layouts/partials/publication_links.html index 1b21ef12..a09eb2f1 100644 --- a/layouts/partials/publication_links.html +++ b/layouts/partials/publication_links.html @@ -31,9 +31,13 @@ {{ end }} {{ if $.Params.projects }} {{ range $.Params.projects }} - - {{ i18n "btn_project" }} - + {{ with ($.Site.GetPage "page" "project" .) }} + + {{ 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." }} + {{ end }} {{ end }} {{ else }} {{ with $.Params.url_project }} diff --git a/layouts/partials/talk_links.html b/layouts/partials/talk_links.html index 80ed96fb..50a05664 100644 --- a/layouts/partials/talk_links.html +++ b/layouts/partials/talk_links.html @@ -22,9 +22,13 @@ {{ end }} {{ range $.Params.projects }} - - {{ i18n "btn_project" }} - + {{ with ($.Site.GetPage "page" "project" .) }} + + {{ 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." }} + {{ end }} {{ end }} {{ range $.Params.url_custom }}