Skip to content

Commit f08e062

Browse files
committed
_layouts: Only display announcement date if available
1 parent bf5ee53 commit f08e062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/announcement.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="announcement">
22
<div class="announcement-body">
3-
<h2>{{ page.title }} <strong class="announcement-meta">{{ page.date | date: '%b %e' }}</strong></h2>
3+
<h2>{{ page.title }}{% if page.date %} <strong class="announcement-meta">{{ page.date | date: '%b %e' }}</strong>{% endif %}</h2>
44
{{ content }}
55
</div>
66
</div>

0 commit comments

Comments
 (0)