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 @@

<%= page.title || "Untitled" %>

- <% if(page.photos) { %> + <% if(page.photos && page.photos.length) { %>
<%- page.title || ">
diff --git a/layout/_partial/post_feed.ejs b/layout/_partial/post_feed.ejs index 27112d1..c4636d8 100644 --- a/layout/_partial/post_feed.ejs +++ b/layout/_partial/post_feed.ejs @@ -1,6 +1,6 @@
- <% if(post.photos) { %> + <% if(post.photos && post.photos.length) { %>