Skip to content

Latest commit

 

History

History
125 lines (117 loc) · 4.36 KB

updates.md

File metadata and controls

125 lines (117 loc) · 4.36 KB
layout mathjax css icon title
page
true
updates
timeline fa-xs fa-rotate-270
Updates
   


awards

   


positions

   


publications

   


service

   


talks

   


life events

{%- 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] -%}
{%- if event.end_date != null -%} {{- event.end_date | date: "%b" -}}{{event.end_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 -%}
( {{- 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 -%}
{%- endif %}

{%- endfor -%}
<script> var events_container = document.getElementsByClassName('events')[0]; function select(cat) { setTimeout(function() { Array.prototype.forEach.call(document.getElementsByClassName('event'), function(e) { if(typeof cat === 'undefined' || e.classList.contains(cat)) { e.style.display = 'flex'; } else { e.style.display = 'none'; } }); events_container.style.opacity = 1; }, 150); } Array.prototype.forEach.call(document.getElementsByClassName('cat'), function(cat) { cat.onclick = function(){ events_container.style.opacity = 0; if(cat.classList.contains('selected')) { cat.classList.remove('selected'); select(); } else { Array.prototype.forEach.call(document.getElementsByClassName('cat'), cat => cat.classList.remove('selected')); class_cat = Array.from(cat.classList).filter(c => c.startsWith('type-'))[0]; cat.classList.add('selected'); select(class_cat); } }; }); </script>