You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ozgurkon-theme-hugo/layouts/partials/session.html

47 lines
1.1 KiB

<a href="{{ .URL }}">
<h2>
{{ .Title }}
<span class="language {{ anchorize .Params.language }}"></span>
</h2>
<hr>
<div class="info">
{{ if.Params.tags }}
<div class="tags">
{{ range .Params.tags }}
{{ range first 1 (where $.Site.Data.categories "key" .) }}
<span>{{ .name }}</span>
{{ end }}
{{ end }}
</div>
{{ end }}
<div class="complexity">{{ .Params.level }}</div>
<div class="type type-{{ anchorize .Params.format }}">{{ .Params.format }}</div>
<div>
{{ if .Params.presentation }}
<div class="presentation">{{ partial "icon.html" "slides" }}</div>
{{ end }}
{{ if .Params.videoId }}
<div class="video">{{ partial "icon.html" "youtube" }}</div>
{{ end }}
</div>
</div>
<ul class="speakers">
{{ range where .Site.RegularPages "Params.key" "in" .Params.speakers }}
<li class="speaker">
<div class="speaker-img" style="background-image: url({{ .Params.photoURL }});"></div>
<strong class="speaker-name">{{ .Params.name }}</strong>
<span class="speaker-country">{{ .Params.country }}</span>
<div class="speaker-company">{{ .Params.company }}</div>
</li>
{{ end }}
</ul>
</a>