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

19 lines
697 B
Plaintext

<p class="article-meta">
<meta itemprop="author" value="Shadowfacts">
on
<span>
<% const formatted = formatDate(metadata.date, "MMM Do, YYYY") %>
<time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>"><%= 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>