Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

ensures speaker's multiple talks in a single event display #658

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

tgross
Copy link
Contributor

@tgross tgross commented Sep 13, 2018

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 #643 (comment)
Replaces devopsdays/devopsdays-web#5404

I've tested this locally with the content in the main site, using the specific page called out in the issue (https://www.devopsdays.org/events/2018-portland/speakers/heidi-waterhouse/)

cc @bridgetkromhout


This change is Reviewable

The performance improvement in devopsdays#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 devopsdays#643 (comment)
Replaces devopsdays-web f944fea71d071b959f715e9cdcb0ebb00f52c978
@bridgetkromhout
Copy link
Contributor

bridgetkromhout commented Sep 13, 2018

Thanks, @tgross! I see the update working correctly in https://deploy-preview-658--devopsdays-theme.netlify.com/events/2018-portland/speakers/heidi-waterhouse/.

Heidi is a developer advocate with LaunchDarkly. She delights in working at the intersection of usability, risk reduction, and cutting-edge technology. One of her favorite hobbies is talking to developers about things they already knew but had never thought of that way before. She sews all her conference dresses so that she’s sure there is a pocket for the mic.

@bridgetkromhout bridgetkromhout merged commit 9aed63e into devopsdays:master Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants