You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openpower.foundation_sw_dev/themes/openpowerfoundation/layouts/events/list.html

42 lines
1.2 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main class="main">
<div class="container">
<h1 class="mb-5 text-center">{{ .Title }}</h1>
{{ range .Pages.ByDate.Reverse }}
{{ $eventdate := .Param "eventdate" }}
<article class="post__article row">
<div class="col-md-6">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/events/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource }}
<img class="img-fluid" src="{{ $image.RelPermalink }}" alt="{{ .Param "title" }}" title="{{ .Param "title" }}">
{{ else }}
{{ .Title }}
{{ end }}
</div>
<div class="col-md-6">
<h2>{{ .Param "title" }}</h2>
<p><b>
{{ dateFormat "January 2, 2006" $eventdate }}</b><br>
<b>{{ .Param "eventtime" }}</b><br>
<b>{{ .Param "eventcalendar" }}</b>
</p>
<p>{{ .Content }}</p>
<p><a class="btn-outline-primary btn-sm btn" href="{{ .Param "link" }}">Registration</a></p>
</div>
</article>
{{ end }}
</div>
</main>
<script>
var today = new Date();
var date = today.getFullYear()+'-'+today.getMonth()+'-'+today.getDate();
</script>
{{ partial "footer.html" . }}