Skip to content

Commit fc2be27

Browse files
XhmikosRTrott
authored andcommitted
knowledge-post.hbs: check for date.
There's one case where date is set to `null`.
1 parent b951d64 commit fc2be27

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

layouts/knowledge-post.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<article>
1212
<div class="blogpost-header">
1313
<h1>{{title}}</h1>
14-
<span class="blogpost-meta">{{#if author}}{{site.by}} {{author}}, {{/if}}<time datetime="{{ date }}">{{ strftime date }}</time></span>
14+
<span class="blogpost-meta">{{#if author}}{{site.by}} {{author}}, {{/if}}
15+
{{#if date}}<time datetime="{{ date }}">{{ strftime date }}</time>{{/if}}
16+
</span>
1517
</div>
1618

1719
{{{ contents }}}

0 commit comments

Comments
 (0)