Skip to content

Commit

Permalink
Merge pull request apache#115 from janhoy/blog-sorting-by-date
Browse files Browse the repository at this point in the history
Sort blog posts reverse date
  • Loading branch information
janhoy authored Jul 25, 2024
2 parents f663e97 + a2ad443 commit f567884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/solr/templates/bloghome.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 id="solr-blogs">Solr<sup>™</sup> Blog Posts<a class="headerlink" href="#so

<hr/>

{% for article in (pages | selectattr("category.name", "in", ["solr/blogposts"]) |list | sort(attribute="locale_date")) %}
{% for article in (pages | selectattr("category.name", "in", ["solr/blogposts"]) |list | sort(attribute="date") | reverse) %}
<h2 id="{{ article.slug }}">
<a href="{{article.url}}">
{{ article.title }}
Expand Down

0 comments on commit f567884

Please sign in to comment.