Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jweslley/hugo-conference.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/speakers.html')
-rw-r--r--layouts/partials/speakers.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/partials/speakers.html b/layouts/partials/speakers.html
new file mode 100644
index 0000000..0fe706f
--- /dev/null
+++ b/layouts/partials/speakers.html
@@ -0,0 +1,27 @@
+<h2 class="section-title">{{ .titles.speakers }}</h2>
+
+<ul class="speakers-list">
+{{ range $speaker := (where .schedule "presentation" "ne" nil) }}
+ <li class="speakers-item" itemprop="performer" itemscope itemtype="http://schema.org/Person">
+ {{ with .photo }}
+ <span class="speaker-photo">
+ <img class="photo" src="{{ . }}" alt="{{ $speaker.name }}" itemprop="image">
+ </span>
+ {{ end }}
+
+ <h3 class="speech-title">
+ {{ with .presentation.time }}
+ <span class="speech-time">{{ . }}</span>
+ {{ end }}
+ <span>{{ .presentation.title }}</span>
+ </h3>
+
+ <h3 class="speakers-name">{{ .name }}
+ {{ with .link }}
+ <a href="{{ .href }}" target="_blank" title="{{ .text }}"> {{ .text }} </a>
+ {{ end }}
+ </h3>
+ <p class="speakers-bio">{{ .bio }}</p>
+ </li>
+{{ end }}
+</ul>