gta shuffle

This commit is contained in:
Denys Konovalov 2022-12-31 18:13:07 +01:00
parent c5bb44f38d
commit 52e1a054b9
2 changed files with 2 additions and 2 deletions

@ -159,7 +159,7 @@
</div> </div>
</div> </div>
<div class="row justify-content-center"> <div class="row justify-content-center">
{{ range first 6 (where .Site.RegularPages "Type" "ganztagsangebote")}} {{ range first 6 (where .Site.RegularPages "Type" "ganztagsangebote" | shuffle)}}
<div class="col-lg-4 col-sm-6 mb-5"> <div class="col-lg-4 col-sm-6 mb-5">
{{ .Render "ganztagsangebote" }} {{ .Render "ganztagsangebote" }}
</div> </div>

@ -29,7 +29,7 @@
<div class="col-lg-3 col-sm-4 col-6 mb-5 mb-md-0"> <div class="col-lg-3 col-sm-4 col-6 mb-5 mb-md-0">
<h4 class="text-white mb-5 text-uppercase">{{ i18n "clubs_footer" }}</h4> <h4 class="text-white mb-5 text-uppercase">{{ i18n "clubs_footer" }}</h4>
<ul class="list-unstyled"> <ul class="list-unstyled">
{{ range first 5 (where .Site.RegularPages "Type" "ganztagsangebote")}} {{ range first 5 (where .Site.RegularPages "Type" "ganztagsangebote" | shuffle)}}
<li class="mb-3"><a class="text-color" href="{{ .Permalink }}">{{ .Title }}</a></li> <li class="mb-3"><a class="text-color" href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }} {{ end }}
</ul> </ul>