Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/list.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 9449215..fc6218d 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -5,6 +5,18 @@
{{ $bigtitle := .Param "bigtitle" }}
{{ $showdate := .Param "showdate" }}
{{ $full := .Param "previewfullcontent" }}
+{{ $randomorder := .Param "randomorder" }}
+
+
+{{ if $randomorder }}
+
+{{ range shuffle .Pages }}
+
+{{ partial "post-preview.html" (dict "page" . "full" $full "bigtitle" $bigtitle "showdate" $showdate) }}
+
+{{ end }}
+
+{{ else }}
{{ range .Pages }}
@@ -13,3 +25,5 @@
{{ end }}
{{ end }}
+
+{{ end }}