feat(team): restore employees carousel matching live markup
This commit is contained in:
+17
-8
@@ -1,6 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "macros/section_title.html" as st %}
|
||||
{% import "macros/page_title.html" as pt %}
|
||||
{% import "macros/team_carousel.html" as tc %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@@ -15,14 +16,22 @@
|
||||
{% endif %}
|
||||
|
||||
{% for page in section.pages %}
|
||||
<section class="text ptb-text">
|
||||
{{ st::section_title(title=page.title, anchor=page.extra.anchor | default(value=page.slug)) }}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% set layout = page.extra.layout | default(value="") %}
|
||||
{% if layout == "carousel" %}
|
||||
{{ tc::team_carousel(
|
||||
title=page.title,
|
||||
anchor=page.extra.anchor | default(value=page.slug),
|
||||
slides=page.extra.slides) }}
|
||||
{% else %}
|
||||
<section class="text ptb-text">
|
||||
{{ st::section_title(title=page.title, anchor=page.extra.anchor | default(value=page.slug)) }}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user