| layout | page | |
|---|---|---|
| math | true | |
| css |
|
|
| icon | timeline fa-xs fa-rotate-270 | |
| title | Updates |
awards
positions
publications
service
talks
milestones
{%- assign sorted_updates = site.updates | sort: 'date' | reverse -%}
{%- for event in sorted_updates -%}
{%- assign event_photo = site.baseurl | append: '/assets/img/photos/' | append: event.photo -%}
{%- assign highlight = event.highlight | default: site.default_highlight[event.type] -%}
{%- endfor -%}
<script>
const events_container = document.getElementsByClassName('events')[0];
function selectType(catType) {
setTimeout(function() {
Array.prototype.forEach.call(
document.getElementsByClassName('event'),
function(e) {
if(typeof catType === 'undefined' || e.classList.contains(catType)) {
e.style.display = 'flex';
} else {
e.style.display = 'none';
}
}
);
events_container.style.opacity = 1;
}, 150);
}
function setCat(cat) {
events_container.style.opacity = 0;
Array.prototype.forEach.call(
document.getElementsByClassName('cat'),
c => c.classList.remove('selected')
);
if (cat) {
cat.classList.add('selected');
selectType(Array.from(cat.classList).filter(c => c.startsWith('type-'))[0]);
} else {
selectType();
}
}
Array.prototype.forEach.call(
document.getElementsByClassName('cat'),
function(cat) {
cat.onclick = function() {
var catType = Array.from(cat.classList).filter(c => c.startsWith('type-'))[0].substring(5);
if (cat.classList.contains('selected')) {
window.location.hash = '';
history.replaceState('', document.title, window.location.pathname);
} else {
window.location.hash = catType;
}
};
}
);
function checkHash() {
var hash = window.location.hash.substring(1).toLowerCase();
if (hash) {
Array.prototype.forEach.call(
document.getElementsByClassName('cat'),
function(cat) {
var catType = Array.from(cat.classList).filter(c => c.startsWith('type-'))[0].substring(5);
if (catType === hash && !cat.classList.contains('selected')) {
setCat(cat);
}
}
);
} else if (document.querySelector('.cat.selected')) {
setCat();
}
}
window.addEventListener('load', checkHash);
window.addEventListener('hashchange', checkHash);
</script>
{%- if event.end_date != null -%}
{{- event.end_date | date: "%b" -}}{{event.end_date | date: "%y"}}
⋮
{%- endif -%} {{- event.date | date: "%b" -}}{{- event.date | date: "%y" -}}
⋮
{%- endif -%} {{- event.date | date: "%b" -}}{{- event.date | date: "%y" -}}
{% if event.photo != null -%}
{%- endif %}
{%- include tools/text_process.md data=event.headline -%}
{% if event.location != null -%}
{%- endif %}
( {{- event.location -}} )
{%- endif %}
{% include tools/text_process.md data=event.content %} {%- if event.type == "publication" and event.publink -%} {%- assign publink = site.baseurl | append: '/publications/' | append: event.publink -%} {%- for pub in site.publications -%} {%- if pub.id == publink and pub.tweet %}
{% include tools/text_process.md data=pub.tweet para=true %}{%- endif %} {%- endfor %} {%- endif -%} {% if event.photo != null -%}