Skip to content

Commit

Permalink
Ensure news posts are always sorted by date.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock authored and dajohi committed Oct 10, 2022
1 parent f701b17 commit 108896e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/partials/news/news-list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ range . }}
{{ range sort . ".Params.sortDate" "desc" }}
<div class="press__news-item">
<a href="{{ .Permalink }}" {{ if .Params.externalSource }} target="_blank" {{ end }} rel="noopener noreferrer">
<img class="press-icon" src="{{ .Site.BaseURL }}/images/news-icons/{{ .Params.icon }}" width="30" alt="" />
Expand Down

0 comments on commit 108896e

Please sign in to comment.