shadowfacts.net/site/includes/article-listing.html.ejs

21 lines
696 B
Plaintext

<article itemscope itemtype="https://schema.org/BlogPosting">
<h2 class="article-title" itemprop="headline">
<a href="<%= post.metadata.permalink %>" itemprop="url mainEntityOfPage">
<% if (post.metadata.htmlTitle) { %>
<%- post.metadata.htmlTitle %>
<% } else { %>
<%= post.metadata.title %>
<% } %>
</a>
</h2>
<%- include("article-meta.html.ejs", { metadata: post.metadata }) %>
<div class="article-content" itemprop="description">
<%- post.metadata.excerpt ?? post.text %>
</div>
<% if (post.metadata.excerpt) { %>
<p class="read-more-link">
<a href="<%= post.metadata.permalink%>">Read more...</a>
</p>
<% } %>
</article>