From 340a804e550cb5b733bd2e64e515e79740bb6338 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 14 Sep 2024 11:22:54 -0400 Subject: feat: impl tutors/about/team view --- templates/about/blurb.html | 5 ++--- templates/about/figure.html | 8 ++++---- templates/about/team.html | 4 +--- templates/post.html | 2 +- templates/posts.html | 4 ++-- 5 files changed, 10 insertions(+), 13 deletions(-) (limited to 'templates') 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 @@ -
-

{{ tutor.display_name() }}

-

{{ tutor.blurb()|markdown }}

+
+ {{ tutor.get_blurb()|markdown }}
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 @@
- - - {{ tutor.display_name() }} + + + {{ tutor.get_name() }} -
{{ tutor.display_name() }}
+
{{ tutor.get_name() }}
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 %}
- {% 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 @@
- {{ article|markdown }} + {{ post.get_article()|markdown }}
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 @@

    - {% for title in post_titles %} -
  • {{ title }}
  • + {% for post in posts %} +
  • {{ post.get_title() }}
  • {% endfor %}

-- cgit v1.2.3