diff --git a/content/team/employees.md b/content/team/employees.md index cbc2740..46b2572 100644 --- a/content/team/employees.md +++ b/content/team/employees.md @@ -4,39 +4,30 @@ weight = 20 [extra] anchor = "employees" +layout = "carousel" + +[[extra.slides]] +name = "Frau Berscheidt" +image = "Berscheidt.jpg" +description = "Medizinische Fachangestellte, Diabetes-Assistentin" + +[[extra.slides]] +name = "Frau Bolz" +image = "Bolz.jpg" +description = "Medizinische Fachangestellte" + +[[extra.slides]] +name = "Frau Frohne" +image = "Frohne.jpg" +description = "Medizinische Fachangestellte" + +[[extra.slides]] +name = "Frau Merhof" +image = "Merhof.jpg" +description = "Medizinische Fachangestellte" + +[[extra.slides]] +name = "Frau Rodrigues" +image = "Rodrigues.jpg" +description = "Medizinische Fachangestellte" +++ - -{{ img(src="team/Berscheidt.jpg", width=200, alt="Frau Berscheidt", class="float-right") }} - -**Frau Berscheidt** -Medizinische Fachangestellte, Diabetes-Assistentin - -
- -{{ img(src="team/Bolz.jpg", width=200, alt="Frau Bolz", class="float-right") }} - -**Frau Bolz** -Medizinische Fachangestellte - -
- -{{ img(src="team/Frohne.jpg", width=200, alt="Frau Frohne", class="float-right") }} - -**Frau Frohne** -Medizinische Fachangestellte - -
- -{{ img(src="team/Merhof.jpg", width=200, alt="Frau Merhof", class="float-right") }} - -**Frau Merhof** -Medizinische Fachangestellte - -
- -{{ img(src="team/Rodrigues.jpg", width=200, alt="Frau Rodrigues", class="float-right") }} - -**Frau Rodrigues** -Medizinische Fachangestellte - -
diff --git a/templates/macros/team_carousel.html b/templates/macros/team_carousel.html new file mode 100644 index 0000000..da0bfe0 --- /dev/null +++ b/templates/macros/team_carousel.html @@ -0,0 +1,42 @@ +{% macro team_carousel(title, anchor, slides) %} +
+
+
+ {%- if anchor %} +
+

{{ title }}

+
+ {%- else %} +

{{ title }}

+ {%- endif %} + +
+
+ +
+ +
+
+{% endmacro %} diff --git a/templates/section.html b/templates/section.html index d7ed85c..527f28e 100644 --- a/templates/section.html +++ b/templates/section.html @@ -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 %} -
- {{ st::section_title(title=page.title, anchor=page.extra.anchor | default(value=page.slug)) }} -
-
- {{ page.content | safe }} -
-
-
+ {% 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 %} +
+ {{ st::section_title(title=page.title, anchor=page.extra.anchor | default(value=page.slug)) }} +
+
+ {{ page.content | safe }} +
+
+
+ {% endif %} {% endfor %} {% endblock %}