2022-12-03 15:27:03 +00:00
|
|
|
<div class="home">
|
|
|
|
<div class="recipes xs-px1 xs-mt2">
|
|
|
|
<div class="clearfix">
|
2022-12-03 21:27:54 +00:00
|
|
|
{{ range sort (where site.RegularPages "Type" "in" site.Params.mainSections) "Title" }}
|
2022-12-03 15:27:03 +00:00
|
|
|
<div class="sm-col sm-col-6 md-col-6 lg-col-4 xs-px1 xs-mb2">
|
|
|
|
<a class="block relative bg-blue" href="{{ .RelPermalink }}">
|
|
|
|
{{ if .Params.Image }}
|
2022-12-04 16:05:38 +00:00
|
|
|
{{ with .Resources.GetMatch .Params.Image }}
|
|
|
|
{{ with .Fit "512x512" }}
|
|
|
|
<div class="image ratio bg-cover" style="background-image:url({{ .RelPermalink }});"></div>
|
2022-12-03 15:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<h1 class="title p2 m0 absolute white bottom-0 left-0 title-shadow">{{ .Title }}</h1>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|