Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple speaker links for joint sessions #114

Open
chris48s opened this issue Jan 12, 2021 · 1 comment
Open

Multiple speaker links for joint sessions #114

chris48s opened this issue Jan 12, 2021 · 1 comment

Comments

@chris48s
Copy link
Contributor

Currently we only have the ability to attach one link to a speaker.
Sometimes a session is presented by two people so they either have to have no link or a link to their project. It would be nice if we could specify an individual link for each speaker (using the existing CSV-based workflow).

@chris48s
Copy link
Contributor Author

Looking over the sites for the last few years every talk has had either one speaker or two. We don't really need to support N speakers.

Probably the simplest solution to keep everything editable via CSV/google sheets would be to make the structure something like

name1 name2 twitter1 twitter2
David Selassie Opoku sdopoku
Monica Granados Lily Zhao monsauce lily_z_zhao

Then do something like

{% if speaker.twitter1 %}
  <a href="https://twitter.com/{{speaker.twitter1}}">{{ speaker.name1 }}</a>
{% else %}
  {{ speaker.name1 }}
{% endif %}
{% if speaker.name2 %}
  {% if speaker.twitter2 %}
    and <a href="https://twitter.com/{{speaker.twitter2}}">{{ speaker.name2 }}</a>
  {% else %}
    and {{ speaker.name2 }}
  {% endif %}
{% endif %}

in the template (i.e: the second speaker is optional but displayed if present).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant