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

16 lines
610 B
Plaintext

<p class="article-meta">
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>
<% } %>
by
<span itemprop="author">Shadowfacts</span>
</p>