fediparty/themes/starter/layout/_partial/featured.ejs

26 lines
658 B
Plaintext
Raw Normal View History

2018-03-12 19:31:14 +00:00
<%
const date = post.date.format(config.date_format).split('-').join('.');
%>
<section class="">
<div class="section-title">
<h4><%- __('featured') %></h4>
</div>
<div class="post__preview featured">
<img src="/<%- post.path %><%- post.image%>" alt="featured post image">
<div class="post__content">
<p class="post__title u-emphasize">
<%- post.title %>
</p>
<p class="post__text"><%- post.preview %></p>
<p class="post__meta u-emphasize">
<%= date %>
<span>
<% post.tags.map(function(tag) { %>#<%= tag.name %> <% }) %>
</span>
</p>
</div>
</div>
</section>