{% assign page_dir = page.dir | split:'/' %}
{% assign key = page_dir[1] | default: page.site  %}
{% assign key_length = key | size %}

<div class="row">
  <div class='col-sm-6'>
    <h2><a href="news">News</a></h2>
    {% include widget_news.html site=key %}
  </div>
  <div class='col-sm-6'>
    <h2><a href="events">Events</a></h2>
    {% include widget_events.html site=key %}
  </div>
</div>
