Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
122 lines (96 sloc) 5.36 KB
---
events: true
# no layout since it's a main page with special navbar that is not be repeated
# nav_id: Home
# nav_weight: 10
# nav_nesting: true
---
<!DOCTYPE html>
<html lang="en">
<head>
{% include main_header.html %}
</head>
<body>
{% include top_brand.html %}
{% include navbar.html %}
<div class="container">
<div class="container">
<div class="row row-offcanvas row-offcanvas-right">
<div class="col-12 col-md-8">
<!-- Code for the news roll -->
{% assign major-news_counter = 0 %}
{% for post in site.categories['news'] limit:10 %}
{% if post.categories contains 'major-news' and major-news_counter == 0 %}
{% assign major-news_id = post.id %}
{% assign major-news_counter = major-news_counter | plus:1 %}
<div class="jumbotron">
<span class="{% if post.title.size<35 %}bodoni-h2{% else %}h2{% endif %} mb-3"><a href="{{site.url }}{{ post.url }}" style="color:inherit;">{{post.title}}</a></span>
{% if post.event-date != null and post.multi-day-event %}
<h5>Event start date: {{ post.event-date | date: "%Y/%m/%d" }}</h5>{%else%}<br>{% endif %}
{% if post.event-date != null and post.multi-day-event != true %}
<h5>Event date: {{ post.event-date | date: "%Y/%m/%d" }}</h5>{%else%}<br>{% endif %}
{% if post.image != null %}
{% if post.image-address != null %}<a href="{{ post.image-address | replace: '__SITE_URL__', site.url }}">{% else %}<a href="{{site.url }}{{ post.url }}">{% endif %}<img src="{{ post.image | replace: '__SITE_URL__', site.url }}" style="{% if post.image-wide != true %}max-width:70%;{% else %}max-width:100%;{% endif %};max-height:400px;height:auto;width:auto;" alt="{{post.image-alt}}" title="{{ post.image-alt }}"></a><br /><br />
{% endif %}
{{ post.excerpt | markdownify }}
<a class="btn btn-secondary h5" href="{{site.url }}{{ post.url }}" style="white-space: normal" role="button">{% if post.more-text == null %}View details{% else %}{{ post.more-text }}{% endif %} &raquo;</a>
</div>
{% endif %}
{% endfor %}
<div class="list-group h5 hidden-lg-up">
{% include front_page_link_list.html classes="orange-item" %}
</div>
<div class="list-group h5 hidden-lg-up">
<br />
</div>
{% assign usual-news-counter = 0 %}
<div class="row zebra-md">
{% for post in site.categories['news'] %}
{% if post.id != major-news_id and post.hide-this-item != true and usual-news-counter <= 5 %}
{% assign usual-news-counter = usual-news-counter | plus:1 %}
<div class="col-12 col-lg-6 my-bordered-news-snippets">
{% if post.image != null %}
{% if post.image-address != null %}<a href="{{ post.image-address | replace: '__SITE_URL__', site.url }}">{% else %}<a href="{{site.url }}{{ post.url }}">{% endif %}<img src="{{ post.image | replace: '__SITE_URL__', site.url }}" alt="{{ post.image-alt }}" title="{{ post.image-alt }}" style="{% if post.image-wide != true %}max-width:70%;{% else %}max-width:100%;{% endif %};max-height:240px;height:auto;width:auto;" class="mt-3"></a>
{% endif %}
<h3 class="mb-3 mt-3"><a href="{{site.url }}{{ post.url }}" style="color:inherit;">{{ post.title }}</a></h3>
{% if post.event-date != null and post.multi-day-event %}
<h6>Event start date: {{ post.event-date | date: "%Y/%m/%d" }}</h6>{% endif %}
{% if post.event-date != null and post.multi-day-event != true %}
<h6>Event date: {{ post.event-date | date: "%Y/%m/%d" }}</h6>{% endif %}
<span class="hidden-xs-down">{{ post.excerpt | markdownify }}</span>
<p><a class="btn btn-secondary h5" href="{{site.url }}{{ post.url }}" style="white-space: normal" role="button">{% if post.more-text == null %}View details{% else %}{{ post.more-text }}{% endif %} &raquo;</a></p>
</div><!--/span-->
{% endif %}
{% endfor %}
<div class="col-lg-6"></div>
<div class="col-lg-6">
<a href="{{site.url}}/allnews/" class="h5 hidden-sm-down mt-4 list-group-item list-group-item-action" >All news and events &raquo;</a>
</div>
</div><!--/row-->
</div><!--/span-->
<!-- The main page's right menu -->
<div class="col-10 col-md-4 sidebar-offcanvas" id="sidebar">
<!-- Link group on the right -->
<br class="hidden-md-up">
<div class="list-group h5 hidden-md-down">
{% include front_page_link_list.html %}
</div>
<br class="hidden-md-down">
<!-- Unifying upcoming seminars calendar -->
{% if page.events %}
<h3>{{ site.new_seminars_label }} (<a href="{{site.url}}/calendar/">all</a>)</h3>
<div style="font-size:15px; margin: 0.5cm 0cm 0cm 0cm;" class="container">
<!-- {% include cal_main.js show_from="2014" show_to="2015" max_sem=300 max_from_cal=100 %} -->
{% include cal_main.js current="true" max_sem=12 max_from_cal=9 %}
</div>
{% endif %}
</div><!--/span-->
</div><!--/row-->
</div>
</div>
{% include footer.html %}
{%unless page.math == false %}{% include katex %}{% include mathjax %}{%endunless%}
{% include bootjs %}
{% include google-analytics.html %}{% include UVA_fonts.html %}
</body>
</html>