浏览代码

minor update

pull/141/head
abhidj0090 4 年前
父节点
当前提交
07a3b8348f
共有 1 个文件被更改,包括 18 次插入15 次删除
  1. 18
    15
      layouts/events/single.html

+ 18
- 15
layouts/events/single.html 查看文件

@@ -12,21 +12,24 @@
</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 mb-3">
<h4>
Speakers
</h4>
{{ range .Params.event_speakers }}
<div class="mb-2">
{{with .speaker_image}}
<div class="client-thumb speaker">
<img class="img-fluid lozad" data-src="{{ .speaker_image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .speaker_image | absURL }}'" alt="{{ .speaker_name }}">
</div>
{{end}}
<div class="bio">{{.speaker_name}}, {{.bio}}</div>
</div>
{{end}}
</div>
{{ $speakers := .Params.event_speakers }}
{{ if gt ( len $speakers) 0 }}
<div class="col-lg-8 offset-lg-2 mb-3">
<h4>
Speakers
</h4>
{{ range $speakers }}
<div class="mb-2">
{{with .speaker_image}}
<div class="client-thumb speaker">
<img class="img-fluid lozad" data-src="{{ .speaker_image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .speaker_image | absURL }}'" alt="{{ .speaker_name }}">
</div>
{{end}}
<div class="bio">{{.speaker_name}}, {{.bio}}</div>
</div>
{{end}}
</div>
{{end}}
<div class="col-lg-8 offset-lg-2">
<div class="post-single-content">
{{ .Content }}

正在加载...
取消
保存