@@ -0,0 +1,30 @@ | |||
{{ define "main" }} | |||
{{ partial "navigation.html" . }} | |||
{{"<!-- Start Upcoming Event/Lecture Section -->" | safeHTML}} | |||
<section id="upcoming" class="section"> | |||
<div class="container"> | |||
<div class="row"> | |||
<div class="col-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<div class="title text-center wow fadeInDown"> | |||
<h2>{{ with i18n "upcomingSectionTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||
{{ with i18n "upcomingSectionTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2> | |||
<div class="border-meghna"></div> | |||
</div> | |||
</div> | |||
{{"<!-- /section title -->" | safeHTML}} | |||
{{ $paginator := .Paginate .Data.Pages }} | |||
{{ range $paginator.Pages }} | |||
{{ .Render "upcoming" }} | |||
{{ end }} | |||
<div class="col-12"> | |||
{{ template "_internal/pagination.html" . }} | |||
</div> | |||
</div> | |||
</div> | |||
</section> | |||
{{"<!-- /upcoming -->" | safeHTML}} | |||
{{ end }} |
@@ -0,0 +1,17 @@ | |||
<article class="col-lg-4 col-md-6 col-12 clearfix wow fadeInUp mb-4" data-wow-duration="500ms"> | |||
<div class="post-block"> | |||
<div class="media-wrapper"> | |||
<img class="img-fluid lozad" data-src="{{ .Params.Image_webp | absURL }}" | |||
onerror="this.onerror=null; | |||
this.src='{{ .Params.Image | absURL }}'" | |||
> | |||
</div> | |||
<div class="content"> | |||
<h3><a href="{{ .Permalink }}">{{ .params.Event_name }}</a></h3> | |||
<p>{{ .Summary }}</p> | |||
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a> | |||
</div> | |||
</div> | |||
</article> | |||
@@ -0,0 +1,27 @@ | |||
{{ if gt site.RegularPages 0}} | |||
{{"<!-- Start Upcoming Section -->" | safeHTML}} | |||
<section id="Lecture" class="section"> | |||
<div class="container"> | |||
<div class="row justify-content-center"> | |||
<div class="col-lg-12"> | |||
{{"<!-- section title -->" | safeHTML}} | |||
<div class="title text-center wow fadeInDown"> | |||
<h2> {{ with i18n "lectureTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color"> | |||
{{ with i18n "lectureTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }} </span></h2> | |||
<div class="border-meghna"></div> | |||
</div> | |||
</div> | |||
{{"<!-- /section title -->" | safeHTML}} | |||
{{ range first 3 (where site.RegularPages "Section" "==" "lectures")}} | |||
{{ .Render "article"}} | |||
{{ end }} | |||
<div class="all-post text-center col-lg-12"> | |||
<a class="btn btn-main" href="{{ `upcoming` | absLangURL }}">{{ i18n "viewAllLectures" }}</a> | |||
</div> | |||
</div> | |||
</div> | |||
</section> | |||
{{"<!-- /upcoming -->" | safeHTML}} | |||
{{ end }} |