From 23fa083cbcad1d0fc4fd8e5af19808ae602413fc Mon Sep 17 00:00:00 2001 From: Cian Butler Date: Thu, 13 Oct 2016 10:22:12 +0100 Subject: [PATCH] use rendered banner and thumbnails where available (#23) --- layout/common/post/banner.ejs | 6 +++--- layout/common/thumbnail.ejs | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/layout/common/post/banner.ejs b/layout/common/post/banner.ejs index 3be8149..1e921aa 100644 --- a/layout/common/post/banner.ejs +++ b/layout/common/post/banner.ejs @@ -1,14 +1,14 @@ <% if (post.link) { %> <% } else if (post.title) { %> <% if (index) { %> <% } else { %> - + <% } %> <% } %> diff --git a/layout/common/thumbnail.ejs b/layout/common/thumbnail.ejs index c59d44b..e9c2d24 100644 --- a/layout/common/thumbnail.ejs +++ b/layout/common/thumbnail.ejs @@ -1,7 +1,8 @@ - <% var thumbnailUrl = thumbnail(post) %> - <% if (thumbnailUrl) { %> - + <% if (post.thumbnail) { %> + + <% } else if (post.banner) { %> + <% } else { %> <% } %>