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

23 lines
894 B
Plaintext
Raw Normal View History

2019-01-04 18:14:53 +00:00
<p class="article-meta">
2019-07-06 18:48:32 +00:00
<div itemprop="author" itemscope="" itemtype="https://schema.org/Person">
<meta itemprop="name" content="Shadowfacts">
</div>
2019-01-04 18:14:53 +00:00
on
<span>
<% const formatted = formatDate(metadata.date, "MMM Do, YYYY") %>
2019-09-18 14:42:41 +00:00
<% const fullFormatted = formatDate(metadata.date, "hh:mm:ss A MMM Do, YYYY") %>
<time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>" title="<%= fullFormatted %>"><%= formatted %></time>
2019-01-04 18:14:53 +00:00
</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-09-18 14:42:41 +00:00
</p>