mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
Provide friendlier error messages
In case of broken `projects` link in talk/publication front matter See #534
This commit is contained in:
1 parent
9842f517dd
commit
8a883d4d40
2 files changed
+2
-2
No files matched your search
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user