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

list.html « _default « layouts - github.com/mdashx/basicwebtheme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fc6218d43a5a06cabe5aa4640a6122e9b1fb1ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{ define "main" }}

{{ .Content }}

{{ $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 }}

{{ partial "post-preview.html" (dict "page" . "full" $full "bigtitle" $bigtitle "showdate" $showdate) }}

{{ end }}

{{ end }}

{{ end }}