Skip to content

Commit

Permalink
Merge pull request #456 from LukeHong/master
Browse files Browse the repository at this point in the history
Fix unexpected posts in recent posts list issue
  • Loading branch information
chipzoller authored Dec 31, 2023
2 parents d0ec11e + 4bbf4e9 commit 4b08dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h2 class="mt-4">{{ T "featured_posts" }}</h2>
<h2 class="mt-4">{{ T "recent_posts" }}</h2>
<ul class="flex-column">
{{- $recent := default 8 $s.numberOfRecentPosts }}
{{- range first $recent $posts | symdiff $featuredPosts }}
{{- range first $recent ($posts | symdiff $featuredPosts) }}
<li>
<a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title | markdownify }}</a>
</li>
Expand Down

0 comments on commit 4b08dde

Please sign in to comment.