site/themes/hugoplate/layouts/partials/components/event-card.html

18 lines
548 B
HTML
Raw Normal View History

<div
class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8 text-center">
{{ $image:= .Params.image }}
{{ if $image }}
{{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "mx-auto mb-6 rounded" "size" "120x120") }}
{{ end }}
{{ $format := "2 Jan 2006" }}
<div class="date">{{dateFormat $format .Params.date_evt }}</div>
<h4 class="mb-3">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h4>
<div class="location">{{.Params.ville }}</div>
<p class="mb-4">
{{ .Summary }}
</p>
</div>