diff options
author | Adam T. Carpenter <atc@53hor.net> | 2024-09-14 11:22:54 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2024-09-14 11:22:54 -0400 |
commit | 340a804e550cb5b733bd2e64e515e79740bb6338 (patch) | |
tree | 1cfcc87357ddc144d82b942dfb84742d491d8148 /templates/about | |
parent | 0213fd2dcd09ca4b1252cdc45415a765a887d679 (diff) | |
download | carpentertutoring-340a804e550cb5b733bd2e64e515e79740bb6338.tar.xz carpentertutoring-340a804e550cb5b733bd2e64e515e79740bb6338.zip |
feat: impl tutors/about/team view
Diffstat (limited to 'templates/about')
-rw-r--r-- | templates/about/blurb.html | 5 | ||||
-rw-r--r-- | templates/about/figure.html | 8 | ||||
-rw-r--r-- | templates/about/team.html | 4 |
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 %} |