Browse Source

minor update

pull/141/head
abhidj0090 4 years ago
parent
commit
731696de7f
2 changed files with 36 additions and 4 deletions
  1. 32
    0
      layouts/events/single.html
  2. 4
    4
      layouts/partials/events.html

+ 32
- 0
layouts/events/single.html View File

@@ -0,0 +1,32 @@
{{ define "main" }}
{{ partial "navigation.html" . }}
<section class="section">
<div class="container">
<div class="row">
<div class="col-lg-8 offset-lg-2 text-center">
<h1>{{ .Params.event_name }}</h1>
<!-- <ul class="list-inline mb-50">
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
<li class="list-inline-item">{{ dateFormat "Monday, Jan 2, 2006" .Params.event_start_date }}</li>
</ul> -->
<img class="img-fluid mb-50 lozad" data-src="{{ .Params.Image | absURL }}" alt="blog-image">
</div>
<div class="col-lg-8 offset-lg-2">
<div class="post-single-content">
{{ .Content }}
</div>
{{ if site.Params.post_share }}
{{ partial "post-share.html" . }}
{{ end }}
<!-- comments -->
<div class="mt-5">
{{ template "_internal/disqus.html" . }}
</div>
</div>
</div>
</div>
</section>
{{ end }}

+ 4
- 4
layouts/partials/events.html View File

@@ -6,15 +6,15 @@
<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>
<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}}
{{ range first 3 (where site.RegularPages "Section" "==" "lectures")}}
{{ .Render "article"}}
{{ range first 3 (where site.RegularPages "Section" "==" "events")}}
{{ .Render "upcoming"}}
{{ end }}
<div class="all-post text-center col-lg-12">

Loading…
Cancel
Save