{% block sidebar %}

  {% if post.post_type == 'page' %}
    {% if sidebar_img %}
      {% set grid_sizes = [ [['col-sm-4', 360, 0, '', 768], ['col-xs-12', 738, 0, '']], 360, 0, ''] %}
      {% include 'sidebar-image.twig' %}
    {% endif %}  
  {% elseif post.post_type == 'solution' %}
    {% include 'sidebar-products.twig' %}
    {% include 'sidebar-downloads.twig' %}
  {% elseif post.post_type == 'case' %}
    {% include 'sidebar-solutions.twig' %}
    {% include 'sidebar-downloads.twig' %}
  {% elseif post.post_type == 'installation' %}
    {% include 'sidebar-products.twig' %}
    {% include 'sidebar-downloads.twig' %}
  {% else %}  
    {{sidebar_primary}}
  {% endif %}
  
{% endblock %}
{% block sidebar %}
  {% if post.post_type == 'page' %}
    {% if sidebar_img %}
      {% set grid_sizes = [ [['col-sm-4', 360, 0, '', 768], ['col-xs-12', 738, 0, '']], 360, 0, ''] %}
      {% include 'sidebar-image.twig' %}
    {% endif %}
    {% if sidebar_content %}
      {% include 'sidebar-content.twig' %}
    {% endif %}
    {% if post._wp_page_template == 'template-contact.php' and options.social_media %}
      {% include 'sidebar-social.twig' %}
    {% endif %}
  {% elseif post.post_type == 'solution' %}
    {% include 'sidebar-products.twig' %}
    {% include 'sidebar-downloads.twig' %}
  {% elseif post.post_type == 'case' %}
    {% include 'sidebar-solutions.twig' %}
    {% include 'sidebar-downloads.twig' %}
  {% elseif post.post_type == 'installation' %}
    {% include 'sidebar-products.twig' %}
    {% include 'sidebar-downloads.twig' %}
  {% else %}  
    {{sidebar_primary}}
  {% endif %}
{% endblock %}
Add conditional for contact template
Add conditional for contact template
