Skip to content

Commit

Permalink
sort topics by last_posted_at in desc order
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Vishal <[email protected]>
  • Loading branch information
vishalvivekm authored Oct 29, 2024
1 parent 6ec914e commit 8aeab00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions layouts/partials/recent-discussions.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

{{ if eq .Section "kanvas" }}
<h2>Recent Discussions on Kanvas</h2>
<h2>Recent Discussions on kanvas</h2>
<ul>
{{ with site.Data.kanvas_discuss }}
{{ $users := .users }}
{{ $topics := .topic_list.topics }}
{{ $topics := sort .topic_list.topics "last_posted_at" "desc" }}

{{ range first 8 $topics }}
<li style="line-height:1.75rem;padding:0.3rem 0.4rem;">
Expand Down

0 comments on commit 8aeab00

Please sign in to comment.