Skip to content

Commit

Permalink
fix: Exclude itself from list (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Jul 10, 2021
1 parent c2ffd8b commit ed90085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/random-post-list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="columns is-multiline is-centered">
{{ range first 2 (shuffle $.Site.RegularPages) }}
{{ range first 2 (shuffle ($.Site.RegularPages | complement (slice $.Page))) }}
<div class="column is-half">
<a href="{{ .RelPermalink }}" rel="nofollow">

Expand Down

0 comments on commit ed90085

Please sign in to comment.