Skip to content

Latest commit

 

History

History
108 lines (101 loc) · 3.32 KB

File metadata and controls

108 lines (101 loc) · 3.32 KB
layout title
page
Talks & Seminars

{% for talk in site.data.talks.talks %}

{{ talk.title }}

{{ talk.date }} {% if talk.speaker or talk.affiliation %} {% if talk.speaker %}{{ talk.speaker }}{% endif %} {% if talk.affiliation %} {% if talk.speaker %} — {% endif %}{{ talk.affiliation }} {% endif %} {% endif %}

{% if talk.abstract %}

Abstract
{% assign abstract_len = talk.abstract | size %} {% assign abstract_limit = 600 %} {% if abstract_len > abstract_limit %} {% assign abstract_preview = talk.abstract | slice: 0, abstract_limit %}

{{ abstract_preview }}... Show more Show less

{% else %}

{{ talk.abstract }}

{% endif %}
{% endif %}

{% if talk.speaker_bio %}

Speaker Bio
{% assign bio_len = talk.speaker_bio | size %} {% assign bio_limit = 600 %} {% if bio_len > bio_limit %} {% assign bio_preview = talk.speaker_bio | slice: 0, bio_limit %}

{{ bio_preview }}... Show more Show less

{% else %}

{{ talk.speaker_bio }}

{% endif %}
{% endif %}

{% if talk.homepage %}

Speaker Homepage »

{% endif %}
{% endfor %} <script> (function () { var containers = document.querySelectorAll('.js-text-toggle'); containers.forEach(function (span) { var full = span.getAttribute('data-full'); var preview = span.getAttribute('data-preview'); var parent = span.parentElement; if (!parent) return; var showMore = parent.querySelector('.js-show-more'); var showLess = parent.querySelector('.js-show-less'); if (!showMore || !showLess) return; showMore.addEventListener('click', function () { span.textContent = full; showMore.style.display = 'none'; showLess.style.display = 'inline'; }); showLess.addEventListener('click', function () { span.textContent = preview; showLess.style.display = 'none'; showMore.style.display = 'inline'; }); }); })(); </script>