Skip to content

Latest commit

 

History

History
147 lines (138 loc) · 5.78 KB

news.markdown

File metadata and controls

147 lines (138 loc) · 5.78 KB
layout image_header intro title headtitle permalink
page
Our News and Events
News and Events | Georgia Tech Visualization Lab
/news/

If you have news items to publish, add them by following these instructions.

{% assign sorted-news = site.data.news | sort: '_date' | reverse %} {% for news in sorted-news %} {% assign mod = forloop.index | modulo: 2 %} {% if mod == 1 %}
{{ news.title }}

{{ news._date | date: "%B %d, %Y" }}: {{ news.short_description }}

Picture of {{ news.image }}

{{ news.description }}

{% endif %} {% endfor %}
{% assign sorted-news = site.data.news | sort: '_date' | reverse %} {% for news in sorted-news %} {% assign mod = forloop.index | modulo: 2 %} {% if mod == 0 %}
{{ news.title }}

{{ news._date | date: "%B %d, %Y" }}: {{ news.short_description }}

Picture of {{ news.image }}

{{ news.description }}

{% endif %} {% endfor %}
{% assign sorted-news = site.data.news | sort: '_date' | reverse %} {% for news in sorted-news %}
{{ news.title }}

{{ news._date | date: "%B %d, %Y" }}: {{ news.short_description }}

Picture of {{ news.image }}

{{ news.description }}

{% endfor %}
<script> $('.news-item').click(e => { if ($(e.currentTarget).hasClass('active-news-item')) { $(e.currentTarget).removeClass('active-news-item'); $('.news-item .description').css('display', 'none'); $('.short-description').addClass('collapsed'); $('.thumbnail-container').removeClass('col-lg-12'); $('.thumbnail-container').addClass('col-lg-5'); $('.short-description-container').removeClass('col-lg-12'); $('.short-description-container').addClass('col-lg-5'); } else { $('.news-item').removeClass('active-news-item'); $(e.currentTarget).addClass('active-news-item'); $('.news-item .description').css('display', 'none'); $(e.currentTarget).find('.description').css('display', 'block'); $(e.currentTarget).find('.collapsed').removeClass('collapsed'); $('.thumbnail-container').removeClass('col-lg-12'); $('.thumbnail-container').addClass('col-lg-5'); $(e.currentTarget).find('.thumbnail-container').removeClass('col-lg-5'); $(e.currentTarget).find('.thumbnail-container').addClass('col-lg-12'); $('.short-description-container').removeClass('col-lg-12'); $('.short-description-container').addClass('col-lg-5'); $(e.currentTarget).find('.short-description-container').removeClass('col-lg-5'); $(e.currentTarget).find('.short-description-container').addClass('col-lg-12'); } }); </script>