{{ define "main" }}
{{ partial "header.html" . }}
{{ with .Content }}{{ . }}{{ end }}
{{- $fictions := .Site.GetPage "section" "fictions" }} {{- range $fictions.Pages }} {{ $rotationDeg := add (math.Floor (mul (math.Rand) 7)) -4 }} {{- $deg := int $rotationDeg -}} {{- $rotateClass := cond (ge $deg 0) (printf "rotate-%d" $deg) (printf "-rotate-%d" (mul -1 $deg)) -}} {{ $steps := slice 60 70 80 90 100 }} {{ $opacity := index $steps (int (math.Floor (mul (math.Rand) 5))) }} {{ $opacityClass := printf "opacity-%d" $opacity }} {{- end }}
{{ partial "footer.html" . }} {{ end }}