freedom/layouts/partials/recent-audio.html

11 lines
No EOL
312 B
HTML

<div style="flex-wrap:wrap;width:100%;display:flex;align-items: center;justify-content: center;">
{{$counter := 0 }}
{{ range .Site.RegularPages }}
{{if .Params.audio}}
{{ $counter = add $counter 1}}
{{if le $counter 5}}
{{partial "audio-episode" .}}
{{end}}
{{end}}
{{end}}
</div>