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

23 lines
894 B
Plaintext

<p class="article-meta">
<div itemprop="author" itemscope="" itemtype="https://schema.org/Person">
<meta itemprop="name" content="Shadowfacts">
</div>
on
<span>
<% const formatted = formatDate(metadata.date, "MMM Do, YYYY") %>
<% const fullFormatted = formatDate(metadata.date, "hh:mm:ss A MMM Do, YYYY") %>
<time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>" title="<%= fullFormatted %>"><%= formatted %></time>
</span>
<% if (metadata.category) { %>
in
<span itemprop="articleSection"><a href="/<%= metadata.category %>/" rel="category"><%= metadata.category %></a></span>
<% } else if (metadata.series) { %>
in
<span itemprop="articleSection"><a href="/tutorials/<%= metadata.series %>" rel="category"><%= metadata.seriesName %></a></span>
<% } %>
<% if (metadata.readingTime) { %>
<%= metadata.readingTime %> min read
<% } %>
</p>