<%= page.title || "Untitled" %>
- <% if(page.photos) { %> + <% if(page.photos && page.photos.length) { %>
- <% if(post.photos) { %>
+ <% if(post.photos && post.photos.length) { %>
diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 21a2f4b..95ca077 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -2,7 +2,7 @@