Skip to content

Commit d690a95

Browse files
committed
Improved Date inclusion
1 parent 50d524b commit d690a95

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

_includes/date.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
{{ article.date | date: "%-d %b %Y" }}
1+
{% assign my_date = include.date %}
2+
{{ my_date | date: "%-d %b %Y" }}

_includes/news.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ <h4><b>News</b></h4>
66

77
{% assign top_articles = site.data.news | slice: 0, 3 %}
88
{% for article in top_articles %}
9-
<p><a href="{{article.link}}">{{article.headline}}</a> <br />{% include date.html %}</p>
9+
<p><a href="{{article.link}}">{{article.headline}}</a><br />{% include date.html date=article.date %}</p>
1010
{% endfor %}
1111

12-
12+
1313

1414
</div>
1515
<h4><a href="{{ site.url }}{{ site.baseurl }}/allnews">... see details</a></h4>

_includes/project-meetings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h4><b>Project Meetings</b></h4>
44

55
{% assign top_articles = site.data.meetinglist | slice: 0, 3 %}
66
{% for article in top_articles %}
7-
<p><a href="{{ site.url }}{{ site.baseurl }}/meetings/#{{ article.label }}">{{ article.agenda[0].title }}</a><br /> {% include date.html %}</p>
7+
<p><a href="{{ site.url }}{{ site.baseurl }}/meetings/#{{ article.label }}">{{ article.agenda[0].title }}</a><br />{% include date.html date=article.date %}</p>
88
{% endfor %}
99

1010
</div>

_includes/releases.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h4><b>Software Releases</b></h4>
66

77
{% assign top_articles = site.data.releases | slice: 0, 5 %}
88
{% for article in top_articles %}
9-
<p><a href="{{article.link}}">{{article.codebase}} - {{article.version}}</a><br />{% include date.html %}</p>
9+
<p><a href="{{article.link}}">{{article.codebase}} - {{article.version}}</a><br />{% include date.html date=article.date %}</p>
1010
{% endfor %}
1111

1212

_pages/releases.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ permalink: /releases
88

99
# Releases
1010

11+
1112
{% for article in site.data.releases %}
12-
<p><em><b>{{article.codebase}} - {{article.version}}</b> ({% include date.html %})</em></p>
13+
<div class='well'>
14+
<p><em><b>{{article.codebase}} - {{article.version}}</b><br>{% include date.html date=article.date %}</em></p>
1315
<div style="padding-left: 20px; padding-right: 20px">
1416
<p>{{article.description}} For details, please see the <a href='{{article.link}}'>release notes</a>.</p>
1517
</div>
18+
</div>
1619
{% endfor %}

0 commit comments

Comments
 (0)