Added banner post option to put an image on post top.
parent
514da72aa4
commit
760fbf8125
|
@ -1,5 +1,8 @@
|
|||
<article id="<%= post.layout %>-<%= post.slug %>" class="article article-type-<%= post.layout %>" itemscope itemprop="blogPost">
|
||||
<div class="article-inner">
|
||||
<% if (post.banner){ %>
|
||||
<%- partial('post/banner') %>
|
||||
<% } %>
|
||||
<%- partial('post/gallery') %>
|
||||
<% if (post.link || post.title){ %>
|
||||
<header class="article-header">
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<% if (post.link){ %>
|
||||
<a href="<%- url_for(post.link) %>" target="_blank" itemprop="url"><img src="<%- post.banner %>" class="article-banner"></a>
|
||||
<% } else if (post.title){ %>
|
||||
<% if (index){ %>
|
||||
<a href="<%- url_for(post.path) %>" itemprop="url"><img src="<%- post.banner %>" class="article-banner"></a>
|
||||
<% } else { %>
|
||||
<img src="<%- post.banner %>" class="article-banner">
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
Loading…
Reference in New Issue