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 | |
parent | 0213fd2dcd09ca4b1252cdc45415a765a887d679 (diff) | |
download | carpentertutoring-340a804e550cb5b733bd2e64e515e79740bb6338.tar.xz carpentertutoring-340a804e550cb5b733bd2e64e515e79740bb6338.zip |
feat: impl tutors/about/team view
Diffstat (limited to 'templates')
-rw-r--r-- | templates/about/blurb.html | 5 | ||||
-rw-r--r-- | templates/about/figure.html | 8 | ||||
-rw-r--r-- | templates/about/team.html | 4 | ||||
-rw-r--r-- | templates/post.html | 2 | ||||
-rw-r--r-- | templates/posts.html | 4 |
5 files changed, 10 insertions, 13 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 %} diff --git a/templates/post.html b/templates/post.html index 57964e9..8346f16 100644 --- a/templates/post.html +++ b/templates/post.html @@ -2,7 +2,7 @@ <html> <body> <article> - {{ article|markdown }} + {{ post.get_article()|markdown }} </article> </body> </html> diff --git a/templates/posts.html b/templates/posts.html index 9f522a6..57d2480 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -4,8 +4,8 @@ <section class="quiet"> <p> <ul> - {% for title in post_titles %} - <li>{{ title }}</li> + {% for post in posts %} + <li>{{ post.get_title() }}</li> {% endfor %} </ul> </p> |