Skip to content

Commit 47099a5

Browse files
committed
News: navigation bugfix
1 parent 1ae287e commit 47099a5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Diff for: _layouts/news.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<div class="well">
1010
<h4>Recent News</h4>
1111
<ul class="list-unstyled post-list-container">
12-
{% assign sorted_news = site.news | sort:"date" %}
13-
{% for entry in sorted_news reversed limit:10 %}
12+
{% assign sorted_news = site.news | sort:"date" | reverse %}
13+
{% for entry in sorted_news limit:10 %}
1414
<li><div>{{ entry.date | date: "%b %-d, %Y" }}</div><a href="{{ entry.url | prepend: site.baseurl }}" {% if page.title==entry.title %} class="active" {% endif %}>{{ entry.title }}</a></li>
1515
{% endfor %}
1616
<li><a href="{{ "/allnews" | prepend: site.baseurl }}">All news ...</a></li>

Diff for: _news/2020-09-23-v6.0.0-released.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: news
3-
title: "v6.0.0 Release Notes"
3+
title: "v6.0.0 Release Notes"
44
author: Stefan Kapferer
55
image: /img/systematic-service-decomposition-tutorial-generate-new-service-cut.png
66
---

Diff for: _news/2020-10-08-v6.1.0-released.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: news
3-
title: "v6.1.0 Release Notes"
3+
title: "v6.1.0 Release Notes"
44
author: Stefan Kapferer
55
image: /img/TeamMap-Illustration-1.png
66
---

Diff for: allnews.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<div class="container">
99
<div class="inner-content">
10-
{% assign sorted_news = site.news | sort:"date" %}
11-
<h1>All News</h1> {% for page in sorted_news reversed %}
10+
{% assign sorted_news = site.news | sort:"date" | reverse %}
11+
<h1>All News</h1> {% for page in sorted_news %}
1212
<p>
1313
<strong><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></strong>
1414
<span>on {{ page.date | date: "%B %e, %Y" }} {% if page.author %} by {{ page.author }}{% endif %}</span>

0 commit comments

Comments
 (0)