@include margin-bottom(1);
+ &:first-of-type {
+
+ @include margin-top(3);
+
+ }
+
&__image {
@include fluid-aspect(9 4, "img");
font-weight: weight(bold);
@include font-size(m);
- @include margin(0 0 1 0);
}
{% if page.get_ascendants|length == 1 %}
{% children_pages page.id as childrens %}
{% if childrens %}
- {% for children in childrens %}
- {% with children as object %}
- {% include "pages/includes/page_card.html" %}
- {% endwith %}
- {% endfor %}
+ <div class="page__childrens">
+ {% for children in childrens %}
+ {% with children as object %}
+ {% include "pages/includes/page_card.html" %}
+ {% endwith %}
+ {% endfor %}
+ </div>
{% endif %}
{% endif %}
{% if page.get_ascendants|length == 1 %}
{% children_pages page.id as childrens %}
{% if childrens %}
- {% for children in childrens %}
- {% with children as object %}
- {% include "pages/includes/page_card.html" %}
- {% endwith %}
- {% endfor %}
+ <div class="page__childrens">
+ {% for children in childrens %}
+ {% with children as object %}
+ {% include "pages/includes/page_card.html" %}
+ {% endwith %}
+ {% endfor %}
+ </div>
{% endif %}
{% endif %}
+{% load mezzanine_tags %}
<a href="{{ object.get_absolute_url }}" title="{{ object.title }}" class="page-box">
<div class="page-box__image">
- <img src="//placehold.it/900x400" />
+ {% if object.basicpage.photo_card %}
+ <img src="{{ MEDIA_URL }}{% thumbnail object.basicpage.photo_card 900 400 %}" />
+ {% elif object.department.photo_card %}
+ <img src="{{ MEDIA_URL }}{% thumbnail object.department.photo_card 900 400 %}" />
+ {% elif object.team.photo_card %}
+ <img src="{{ MEDIA_URL }}{% thumbnail object.team.photo_card 900 400 %}" />
+ {% else %}
+
+ {% endif %}
</div>
<div class="page-box__content">
<div>
{% if page.get_ascendants|length == 1 %}
{% children_pages page.id as childrens %}
{% if childrens %}
- {% for children in childrens %}
- {% with children as object %}
- {% include "pages/includes/page_card.html" %}
- {% endwith %}
- {% endfor %}
+ <div class="page__childrens">
+ {% for children in childrens %}
+ {% with children as object %}
+ {% include "pages/includes/page_card.html" %}
+ {% endwith %}
+ {% endfor %}
+ </div>
{% endif %}
{% endif %}