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

19 lines
697 B
Plaintext
Raw Normal View History

2019-01-04 18:14:53 +00:00
<p class="article-meta">
2019-06-29 20:01:05 +00:00
<meta itemprop="author" value="Shadowfacts">
2019-01-04 18:14:53 +00:00
on
<span>
<% const formatted = formatDate(metadata.date, "MMM Do, YYYY") %>
<time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>"><%= formatted %></time>
</span>
<% if (metadata.category) { %>
2019-01-04 23:24:16 +00:00
in
<span itemprop="articleSection"><a href="/<%= metadata.category %>/" rel="category"><%= metadata.category %></a></span>
2019-01-04 18:14:53 +00:00
<% } else if (metadata.series) { %>
2019-01-04 23:24:16 +00:00
in
<span itemprop="articleSection"><a href="/tutorials/<%= metadata.series %>" rel="category"><%= metadata.seriesName %></a></span>
2019-01-04 18:14:53 +00:00
<% } %>
2019-06-29 20:01:05 +00:00
<% if (metadata.readingTime) { %>
<%= metadata.readingTime %> min read
<% } %>
2019-01-04 18:14:53 +00:00
</p>