website/layouts/partials/showcase.html

18 lines
644 B
HTML
Raw Normal View History

{{ if .Site.Params.showcaseDir }}
{{ $showcasePosts := where site.RegularPages "Section" "in" .Site.Params.showcaseDir }}
{{ range (sort $showcasePosts "File.LogicalName") }}
{{ if in .Dir .Site.Params.showcaseDir }}
<div class="showcaseCard {{if .Site.Params.discreteCards }}discrete{{ end }}">
<div>
<h1>{{ .Title }}</h1>
<div>{{ .Content }}</div>
</div>
{{ if .Params.image }}
<img src="{{ .Params.image }}" />
{{ end }}
</div>
{{ end }}
{{ end }}
<hr />
{{ end }}