2018-03-12 19:31:14 +00:00
|
|
|
|
|
|
|
<%
|
2018-06-21 00:05:40 +00:00
|
|
|
const date = post.date.format(config.date_format).split('-').join('.');
|
2018-03-12 19:31:14 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
<section class="">
|
|
|
|
<div class="section-title">
|
|
|
|
<h4><%- __('featured') %></h4>
|
|
|
|
</div>
|
2019-12-13 20:14:15 +00:00
|
|
|
<a href="<%- url_for(post.url) %>" class="post__preview featured">
|
2018-10-14 18:09:20 +00:00
|
|
|
<div class="post__image">
|
2019-12-20 19:56:20 +00:00
|
|
|
<img src="<%- url_for(post.url + '/' + post.banner) %>" alt="featured post image">
|
2018-10-14 18:09:20 +00:00
|
|
|
</div>
|
|
|
|
|
2018-03-12 19:31:14 +00:00
|
|
|
<div class="post__content">
|
2018-06-04 14:30:53 +00:00
|
|
|
<p class="post__title u-emphasize u-center">
|
2018-03-12 19:31:14 +00:00
|
|
|
<%- post.title %>
|
|
|
|
</p>
|
|
|
|
<p class="post__text"><%- post.preview %></p>
|
|
|
|
<p class="post__meta u-emphasize">
|
|
|
|
<%= date %>
|
2018-07-05 01:18:42 +00:00
|
|
|
<span>by <% post.authors.map(function(author) { %><%= author.name %><i>, </i> <% }) %></span>
|
2018-03-12 19:31:14 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-03-20 17:51:15 +00:00
|
|
|
</a>
|
2018-03-12 19:31:14 +00:00
|
|
|
</section>
|