fediversity.eu/layouts/events/single.html

74 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2024-04-03 11:51:52 +02:00
{{ define "main" }}
<section class="section pt-7">
<div class="container">
<div class="row justify-center">
<article class="lg:col-10">
2024-04-30 16:54:13 +02:00
2024-04-03 11:51:52 +02:00
{{ $image:= .Params.image }} {{ if $image }}
2024-04-30 16:54:13 +02:00
<div class="mb-10 flex flex-wrap"> <!-- Add flex-wrap class to allow wrapping -->
<div class="w-full lg:w-1/2 mb-4 lg:mb-0 pr-8"> <!-- Specify width for the text content and add margin to the right -->
<h1 class="h2 mb-4">{{ .Title }}</h1>
<ul class="mb-4">
<!-- List items for author, categories, and publish date -->
<li class="mr-4 inline-block">
2024-05-07 15:29:50 +02:00
<i class="fa-regular fa-clock mr-2"></i>
Start: {{ .Params.datetime_start }}
</li>
<br>
<li class="mr-4 inline-block">
<i class="fa-regular fa-clock mr-2"></i>
End: {{ .Params.datetime_end }}
</li>
<br>
<li class="mr-4 inline-block">
<i class="fa-regular fa-globe mr-2"></i>
Location: {{ .Params.location }}
2024-04-30 16:54:13 +02:00
</li>
</ul>
<div class="content mb-10">{{ .Content }}</div>
<!-- Other content elements -->
</div>
<div class="w-full lg:w-1/2"> <!-- Specify width for the image content -->
<div>
{{ partial "image" (dict "Src" $image "Alt" .Title "Class" "w-full rounded") }}
</div>
</div>
2024-04-03 11:51:52 +02:00
</div>
{{ end }}
2024-04-30 16:54:13 +02:00
2024-04-03 11:51:52 +02:00
</ul>
2024-04-30 16:54:13 +02:00
2024-04-03 11:51:52 +02:00
<div class="row items-start justify-between">
{{ $tags:= .Params.tags }} {{ if $tags }}
<div class="lg:col-5 mb-10 flex items-center lg:mb-0">
<h5 class="mr-3">{{ i18n "tags" }} :</h5>
<ul>
{{ range $i,$p:= $tags }}
<li class="inline-block">
<a
class="bg-theme-light hover:bg-primary m-1 block rounded px-3 py-1 hover:text-white"
href="{{ `tags/` | relLangURL }}{{ . | urlize | lower }}/"
>
{{ . | humanize }}
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
2024-04-30 16:54:13 +02:00
2024-04-03 11:51:52 +02:00
</div>
2024-04-30 16:54:13 +02:00
2024-04-03 11:51:52 +02:00
</article>
</div>
2024-04-30 16:54:13 +02:00
2024-04-03 11:51:52 +02:00
</div>
</section>
{{ end }}