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

23 lines
949 B
Plaintext
Raw Normal View History

2019-01-04 18:14:53 +00:00
<p class="article-meta">
2020-02-19 02:06:20 +00:00
<span itemprop="author" itemscope="" itemtype="https://schema.org/Person">
2019-07-06 18:48:32 +00:00
<meta itemprop="name" content="Shadowfacts">
2020-02-19 02:06:20 +00:00
</span>
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) { %>
2019-11-12 02:28:52 +00:00
<span title="<%= metadata.wordCount %> words"><%= metadata.readingTime %> min read</span>
2019-06-29 20:01:05 +00:00
<% } %>
2019-09-18 14:42:41 +00:00
</p>