summaryrefslogtreecommitdiff
path: root/templates/about
diff options
context:
space:
mode:
Diffstat (limited to 'templates/about')
-rw-r--r--templates/about/blurb.html5
-rw-r--r--templates/about/figure.html8
-rw-r--r--templates/about/team.html4
3 files changed, 7 insertions, 10 deletions
diff --git a/templates/about/blurb.html b/templates/about/blurb.html
index 630cf65..4389d47 100644
--- a/templates/about/blurb.html
+++ b/templates/about/blurb.html
@@ -1,4 +1,3 @@
-<div id="{{ tutor.id() }}">
- <h2>{{ tutor.display_name() }}</h2>
- <p>{{ tutor.blurb()|markdown }}</p>
+<div id="{{ tutor.get_id() }}">
+ {{ tutor.get_blurb()|markdown }}
</div>
diff --git a/templates/about/figure.html b/templates/about/figure.html
index 2b8e308..4a4c365 100644
--- a/templates/about/figure.html
+++ b/templates/about/figure.html
@@ -1,8 +1,8 @@
<figure class="shadowy">
<picture>
- <source srcset="/team/{{ tutor.id() }}.webp" type="image/webp" />
- <source srcset="/team/{{ tutor.id() }}.png" type="image/png" />
- <img alt="{{ tutor.display_name() }}" src="/team/{{ tutor.id() }}.png" />
+ <source srcset="/team/{{ tutor.get_id() }}/{{ tutor.get_id() }}.webp" type="image/webp" />
+ <source srcset="/team/{{ tutor.get_id() }}/{{ tutor.get_id() }}.png" type="image/png" />
+ <img alt="{{ tutor.get_name() }}" src="/team/{{ tutor.get_id() }}/{{ tutor.get_id() }}.png" />
</picture>
- <figcaption>{{ tutor.display_name() }}</figcaption>
+ <figcaption>{{ tutor.get_name() }}</figcaption>
</figure>
diff --git a/templates/about/team.html b/templates/about/team.html
index b1f0588..2857efe 100644
--- a/templates/about/team.html
+++ b/templates/about/team.html
@@ -1,8 +1,6 @@
-{% let flip = true %}
-
{% for tutor in tutors %}
<section class="quiet flexible">
- {% if flip == true %}
+ {% if loop.index0 % 2 == 0 %}
{% include "blurb.html" %}
{% include "figure.html" %}
{% else %}