From 760fbf8125fbeda2d1cc874951a1369d75e1bef1 Mon Sep 17 00:00:00 2001 From: Dominique Da Silva Date: Wed, 27 May 2015 13:34:55 +0200 Subject: [PATCH] Added banner post option to put an image on post top. --- layout/_partial/article.ejs | 3 +++ layout/_partial/post/banner.ejs | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 layout/_partial/post/banner.ejs diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index ce40505..a1470d3 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -1,5 +1,8 @@
+ <% if (post.banner){ %> + <%- partial('post/banner') %> + <% } %> <%- partial('post/gallery') %> <% if (post.link || post.title){ %>
diff --git a/layout/_partial/post/banner.ejs b/layout/_partial/post/banner.ejs new file mode 100644 index 0000000..eb83476 --- /dev/null +++ b/layout/_partial/post/banner.ejs @@ -0,0 +1,10 @@ +<% if (post.link){ %> + +<% } else if (post.title){ %> + <% if (index){ %> + + <% } else { %> + + <% } %> +<% } %> +