From 694a38a5ff01a610d2bb7ebd639919b7258fddc5 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Thu, 13 Sep 2018 15:35:56 -0400 Subject: [PATCH] ensures speaker's multiple talks in a single event display The performance improvement in #644 to the speaker page implicitly (and incorrectly) assumes that a speaker will give a single talk per event. Rather than using .GetPage which can return only a single page, we can change the original call to .Site.Pages and get the correct behavior with at least some of the performance improvement. This could be further improved if the program YAML included the event name, or if Hugo supported a "contains" or "startswith" operator in the where function. Fixes https://github.com/devopsdays/devopsdays-theme/issues/643#issuecomment-421098679 Replaces devopsdays-web f944fea71d071b959f715e9cdcb0ebb00f52c978 --- layouts/speaker/single.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/layouts/speaker/single.html b/layouts/speaker/single.html index eda5160e5..c7ee3c2c3 100644 --- a/layouts/speaker/single.html +++ b/layouts/speaker/single.html @@ -16,10 +16,7 @@

{{ .Title }}

{{ .Title }} at {{ $e.city }} {{$e.year}}