diff --git a/layouts/admin/list.html b/layouts/admin/list.html index a3b6ead..f7929ec 100644 --- a/layouts/admin/list.html +++ b/layouts/admin/list.html @@ -145,7 +145,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)) : "")) ) ) )