mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-11-26 02:11:29 +00:00
33 lines
883 B
Plaintext
33 lines
883 B
Plaintext
|
|
<%
|
|
const date = post.date.format(config.date_format).split('-').join('.');
|
|
|
|
let avatarPath ="";
|
|
|
|
if (page.avatar) {
|
|
avatarPath = page.avatar;
|
|
} else {
|
|
avatarPath = "default-avatar.png";
|
|
}
|
|
%>
|
|
|
|
<section class="">
|
|
<div class="section-title">
|
|
<h4><%- __('featured') %></h4>
|
|
</div>
|
|
<a href="<%- post.url %>" class="post__preview featured">
|
|
<img src="/<%- post.path %><%- post.banner%>" alt="featured post image">
|
|
<img class="post__avatar" src="/img/authors/<%= avatarPath %>" alt="author">
|
|
<div class="post__content">
|
|
<p class="post__title u-emphasize u-center">
|
|
<%- post.title %>
|
|
</p>
|
|
<p class="post__text"><%- post.preview %></p>
|
|
<p class="post__meta u-emphasize">
|
|
<%= date %>
|
|
<span>by <% post.authors.map(function(author) { %><%= author %> <% }) %></span>
|
|
</p>
|
|
</div>
|
|
</a>
|
|
</section>
|