added option to shuffle related articles at build
This commit is contained in:
parent
e7257ec518
commit
9f75eb3378
2 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,9 @@
|
|||
) "Params.tags" "intersect" .Params.tags
|
||||
) "Permalink" "ne" .Permalink
|
||||
}}
|
||||
{{ if site.Params.randomRelated | default false }}
|
||||
{{ $postsList = shuffle $postsList }}
|
||||
{{ end }}
|
||||
<div class="relatedArticlesContainer">
|
||||
<hr />
|
||||
<h2>More posts like this</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue