diff --git a/layouts/admin/list.html b/layouts/admin/list.html index d8e546a..eece0cc 100644 --- a/layouts/admin/list.html +++ b/layouts/admin/list.html @@ -106,7 +106,7 @@ ), h("footer", { className: "article-time" }, h("div", {}, - h("time", { className: "article-time--published" }, (entry.data.date != "" ? new Intl.DateTimeFormat("de-DE", {dateStyle: "long"}).format(new Date(entry.data.date)) : "")) + h("time", { className: "article-time--published" }, ((entry.data.date != null && entry.data.date != "") ? new Intl.DateTimeFormat("de-DE", {dateStyle: "long"}).format(new Date(entry.data.date)) : "")) ) ) )